summaryrefslogtreecommitdiffstats
path: root/gnu/llvm/tools/clang/lib/Driver/Tools.cpp
diff options
context:
space:
mode:
authorkettenis <kettenis@openbsd.org>2017-05-09 21:09:27 +0000
committerkettenis <kettenis@openbsd.org>2017-05-09 21:09:27 +0000
commit247444e3e456e299c607fd19dda8d130f3637bcf (patch)
tree7a9000e28629d493a3c1bf574d56772b3da16d01 /gnu/llvm/tools/clang/lib/Driver/Tools.cpp
parentIf the target pane for send-keys in in a mode with a key table (that is, (diff)
downloadwireguard-openbsd-247444e3e456e299c607fd19dda8d130f3637bcf.tar.xz
wireguard-openbsd-247444e3e456e299c607fd19dda8d130f3637bcf.zip
Enable TLS support but default to the emulatated TLS model. Enable the
runtime support code libcompiler_rt for this. This code uses functions that live in libpthread, so code that uses TLS support will need to be linked with -lpthread. This should allow more ports to build with base clang. ok espie@
Diffstat (limited to 'gnu/llvm/tools/clang/lib/Driver/Tools.cpp')
-rw-r--r--gnu/llvm/tools/clang/lib/Driver/Tools.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/gnu/llvm/tools/clang/lib/Driver/Tools.cpp b/gnu/llvm/tools/clang/lib/Driver/Tools.cpp
index e212feb9d08..bd736c822c9 100644
--- a/gnu/llvm/tools/clang/lib/Driver/Tools.cpp
+++ b/gnu/llvm/tools/clang/lib/Driver/Tools.cpp
@@ -5370,7 +5370,8 @@ void Clang::ConstructJob(Compilation &C, const JobAction &JA,
Args.AddLastArg(CmdArgs, options::OPT_fno_operator_names);
// Emulated TLS is enabled by default on Android, and can be enabled manually
// with -femulated-tls.
- bool EmulatedTLSDefault = Triple.isAndroid() || Triple.isWindowsCygwinEnvironment();
+ bool EmulatedTLSDefault = Triple.isAndroid() || Triple.isOSOpenBSD() ||
+ Triple.isWindowsCygwinEnvironment();
if (Args.hasFlag(options::OPT_femulated_tls, options::OPT_fno_emulated_tls,
EmulatedTLSDefault))
CmdArgs.push_back("-femulated-tls");