diff options
| author | 2017-05-09 21:09:27 +0000 | |
|---|---|---|
| committer | 2017-05-09 21:09:27 +0000 | |
| commit | 247444e3e456e299c607fd19dda8d130f3637bcf (patch) | |
| tree | 7a9000e28629d493a3c1bf574d56772b3da16d01 /gnu/llvm/tools/clang/lib/Driver/Tools.cpp | |
| parent | If the target pane for send-keys in in a mode with a key table (that is, (diff) | |
| download | wireguard-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.cpp | 3 |
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"); |
