We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
ExplicitEmulatedTLS
1 parent f65615f commit 047ed32Copy full SHA for 047ed32
compiler/rustc_llvm/llvm-wrapper/PassWrapper.cpp
@@ -410,10 +410,15 @@ extern "C" LLVMTargetMachineRef LLVMRustCreateTargetMachine(
410
}
411
Options.RelaxELFRelocations = RelaxELFRelocations;
412
Options.UseInitArray = UseInitArray;
413
+
414
+#if LLVM_VERSION_LT(17, 0)
415
if (ForceEmulatedTls) {
416
Options.ExplicitEmulatedTLS = true;
417
Options.EmulatedTLS = true;
418
419
+#else
420
+ Options.EmulatedTLS = ForceEmulatedTls || Trip.hasDefaultEmulatedTLS();
421
+#endif
422
423
if (TrapUnreachable) {
424
// Tell LLVM to codegen `unreachable` into an explicit trap instruction.
0 commit comments