mirror of
https://github.com/hedge-dev/XenosRecomp.git
synced 2025-10-30 07:12:17 +00:00
Compare commits
2 commits
12f588ae35
...
99db834f5c
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
99db834f5c | ||
|
|
f581e40c71 |
1 changed files with 7 additions and 1 deletions
|
|
@ -53,7 +53,13 @@ std::vector<uint8_t> AirCompiler::compile(const std::string& shaderSource)
|
||||||
std::exit(1);
|
std::exit(1);
|
||||||
}
|
}
|
||||||
|
|
||||||
const char* compileCommand[] = { "/usr/bin/xcrun", "-sdk", "macosx", "metal", "-o", irPath.path.c_str(), "-c", sourcePath.path.c_str(), "-D__air__", "-DUNLEASHED_RECOMP", "-Wno-unused-variable", "-frecord-sources", "-gline-tables-only", nullptr };
|
const char* compileCommand[] = {
|
||||||
|
"/usr/bin/xcrun", "-sdk", "macosx", "metal", "-o", irPath.path.c_str(), "-c", sourcePath.path.c_str(), "-Wno-unused-variable", "-frecord-sources", "-gline-tables-only", "-D__air__",
|
||||||
|
#ifdef UNLEASHED_RECOMP
|
||||||
|
"-DUNLEASHED_RECOMP",
|
||||||
|
#endif
|
||||||
|
nullptr
|
||||||
|
};
|
||||||
if (const int compileStatus = executeCommand(compileCommand); compileStatus != 0)
|
if (const int compileStatus = executeCommand(compileCommand); compileStatus != 0)
|
||||||
{
|
{
|
||||||
fmt::println("Metal compiler exited with status: {}", compileStatus);
|
fmt::println("Metal compiler exited with status: {}", compileStatus);
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue