From 634ae81950fab3f0c69c82dc80f1af16d6bf358c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Storsj=C3=B6?= Date: Sat, 2 Dec 2017 23:43:31 +0200 Subject: [PATCH] Pass -femulated-tls to the compiler by default The MinGW CRT wrapping has a few minor issues that makes native TLS fail at the moment. LLVM doesn't support native TLS on windows/aarch64, but emulated TLS is supported now. --- README.md | 1 - wrappers/clang-target-wrapper | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/README.md b/README.md index 6ae1687..f0c6d12 100644 --- a/README.md +++ b/README.md @@ -68,7 +68,6 @@ normal GCC/binutils based MinGW. the dllimport attributes. - The C++ libraries ([libcxxabi](http://libcxxabi.llvm.org/), [libcxx](http://libcxx.llvm.org/)) can only be linked statically at the moment. -- The ARM64 target doesn't support thread local variables. Additionally, one may run into other minor differences between GCC and clang. diff --git a/wrappers/clang-target-wrapper b/wrappers/clang-target-wrapper index c2e9b28..9caebec 100755 --- a/wrappers/clang-target-wrapper +++ b/wrappers/clang-target-wrapper @@ -21,4 +21,4 @@ x86_64) EH_FLAG=-fdwarf-exceptions ;; esac -$DIR/$EXE -target $TARGET -rtlib=compiler-rt -stdlib=libc++ -fuse-ld=lld $EH_FLAG -Qunused-arguments "$@" +$DIR/$EXE -target $TARGET -rtlib=compiler-rt -stdlib=libc++ -fuse-ld=lld $EH_FLAG -Qunused-arguments -femulated-tls "$@"