Ticket #68364: patch-force_emulate_tls.diff

File patch-force_emulate_tls.diff, 1010 bytes (added by Schamschula (Marius Schamschula), 9 months ago)
  • src/llvm-project/llvm/include/llvm/TargetParser/Triple.h

    old new  
    960960
    961961  /// Tests whether the target uses emulated TLS as default.
    962962  bool hasDefaultEmulatedTLS() const {
    963     return isAndroid() || isOSOpenBSD() || isWindowsCygwinEnvironment();
     963    return true;
    964964  }
    965965
    966966  /// Tests whether the target uses -data-sections as default.
  • compiler/rustc_target/src/spec/apple_base.rs

    old new  
    122122    // TLS is flagged as enabled if it looks to be supported. The architecture
    123123    // only matters for default deployment target which is 11.0 for ARM64 and
    124124    // 10.7 for everything else.
    125     let has_thread_local = os == "macos" && macos_deployment_target(Arch::X86_64) >= (10, 7);
     125    let has_thread_local = false;
    126126
    127127    let abi = arch.target_abi();
    128128