1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-21 18:22:53 +01:00

[llvm-jitlink] Don't hardcode LLVM version number into the runtime path.

This should unbreak builders that were failing due to different patch numbers.
This commit is contained in:
Lang Hames 2021-07-27 13:03:19 +10:00
parent fcd0279b17
commit 52c4e0dd10

View File

@ -1191,7 +1191,11 @@ static Error sanitizeArguments(const Triple &TT, const char *ArgV0) {
if (DefaultOrcRuntimePath.endswith("bin"))
sys::path::remove_filename(DefaultOrcRuntimePath); // remove 'bin'
sys::path::append(DefaultOrcRuntimePath,
"lib/clang/13.0.0/lib/darwin/libclang_rt.orc_osx.a");
("lib/clang/" + Twine(LLVM_VERSION_MAJOR) + "." +
Twine(LLVM_VERSION_MINOR) + "." +
Twine(LLVM_VERSION_PATCH) +
"/lib/darwin/libclang_rt.orc_osx.a")
.str());
OrcRuntimePath = DefaultOrcRuntimePath.str().str();
}
}