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:
parent
fcd0279b17
commit
52c4e0dd10
@ -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();
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user