Skip to content

Commit b85d165

Browse files
authored
[ET-VK][ez] Log GLSL file path on compile error
Differential Revision: D70795732 Pull Request resolved: #9050
1 parent e673f7c commit b85d165

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

backends/vulkan/runtime/gen_vulkan_spv.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -769,7 +769,12 @@ def process_shader(shader_paths_pair):
769769
+ self.glslc_flags.split()
770770
)
771771

772-
subprocess.check_call(cmd)
772+
try:
773+
subprocess.check_call(cmd)
774+
except subprocess.CalledProcessError as e:
775+
raise RuntimeError(
776+
f"Failed to compile {os.getcwd()}/{glsl_out_path}"
777+
) from e
773778

774779
return (spv_out_path, glsl_out_path)
775780

0 commit comments

Comments
 (0)