mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
Use thread private key to avoid weak linkage
We use one bit of the third reserved swift private tls key. Also move the functionality into a separate static archive that is always linked dependent on deployment target.
This commit is contained in:
@@ -1178,6 +1178,11 @@ static bool ParseIRGenArgs(IRGenOptions &Opts, ArgList &Args,
|
||||
runtimeCompatibilityVersion;
|
||||
}
|
||||
|
||||
if (!Args.hasArg(options::
|
||||
OPT_disable_autolinking_runtime_compatibility_dynamic_replacements)) {
|
||||
Opts.AutolinkRuntimeCompatibilityDynamicReplacementLibraryVersion =
|
||||
getSwiftRuntimeCompatibilityVersionForTarget(Triple);
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user