Debug mode for metal shaders

This commit is contained in:
Jack Andersen 2019-02-03 15:38:14 -10:00
parent 23a6d66a8c
commit d88c9cc21b
2 changed files with 6 additions and 2 deletions

2
hecl/extern/boo vendored

@ -1 +1 @@
Subproject commit 2135f4e4dc6ee7fa5a2b6398b97632dc5af9c822
Subproject commit 3e1da36f390b4ddbc3a48977906c1f69f009614a

View File

@ -177,7 +177,11 @@ struct ShaderCompiler<PlatformType::Metal> {
close(compilerIn[1]);
execlp("xcrun", "xcrun", "-sdk", "macosx", "metal", "-o", "/dev/stdout", "-Wno-unused-variable",
"-Wno-unused-const-variable", "-Wno-unused-function", "-c", "-x", "metal", "-", NULL);
"-Wno-unused-const-variable", "-Wno-unused-function", "-c", "-x", "metal",
#ifndef NDEBUG
"-gline-tables-only", "-MO",
#endif
"-", NULL);
fprintf(stderr, "execlp fail %s\n", strerror(errno));
exit(1);
}