We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 106a31d commit e8eaa2aCopy full SHA for e8eaa2a
src/rustllvm/PassWrapper.cpp
@@ -399,6 +399,12 @@ extern "C" LLVMTargetMachineRef LLVMRustCreateTargetMachine(
399
Options.ThreadModel = ThreadModel::Single;
400
}
401
402
+ // See https://reviews.llvm.org/D52013
403
+ if (Trip.getArch() == llvm::Triple::ArchType::ppc64 &&
404
+ Trip.getEnvironment() == llvm::Triple::EnvironmentType::Musl) {
405
+ Options.MCOptions.ABIName = "elfv2";
406
+ }
407
+
408
#if LLVM_VERSION_GE(6, 0)
409
Optional<CodeModel::Model> CM;
410
#else
0 commit comments