Skip to content

Commit 06fab7d

Browse files
committed
Enable source inclusion for recompiled shaders
Signed-off-by: Isaac Marovitz <isaacryu@icloud.com>
1 parent aba6500 commit 06fab7d

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

XenosRecomp/air_compiler.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ std::vector<uint8_t> AirCompiler::compile(const std::string& shaderSource) {
1818
close(tmpFD);
1919

2020
pid_t pid;
21-
char* airArgv[] = { "xcrun", "-sdk", "macosx", "metal", "-o", irFile.data(), "-c", inputFile.data(), "-D__air__", "-DUNLEASHED_RECOMP", "-Wno-unused-variable", nullptr };
21+
char* airArgv[] = { "xcrun", "-sdk", "macosx", "metal", "-o", irFile.data(), "-c", inputFile.data(), "-D__air__", "-DUNLEASHED_RECOMP", "-Wno-unused-variable", "-frecord-sources", "-gline-tables-only", nullptr };
2222

2323
if (posix_spawn(&pid, "/usr/bin/xcrun", nullptr, nullptr, airArgv, nullptr) != 0) {
2424
unlink(inputFile.data());

0 commit comments

Comments
 (0)