wrappers: Stop specifying -fuse-cxa-atexit

Since clang 9.0.0 (34ec6929a1fb33716d0035dc0f1f164d7568b4dc
in llvm-project), it's no longer necessary to set this to be able
to use __cxa_thread_atexit (for TLS destructors). This brings the
behaviour closer to GCC, and reduces the amount of non-default
options used.
This commit is contained in:
Martin Storsjö committed 2019-12-20 23:18:41 +02:00
1 parent 7f2171d587
commit bc6df720ce
2 files changed
-2

No files matched your search

-1
View File
@@ -201,7 +201,6 @@ int _tmain(int argc, TCHAR* argv[]) {
exec_argv[arg++] = _T("-rtlib=compiler-rt");
exec_argv[arg++] = _T("-stdlib=libc++");
exec_argv[arg++] = _T("-fuse-ld=lld");
exec_argv[arg++] = _T("-fuse-cxa-atexit");
exec_argv[arg++] = _T("-Qunused-arguments");
for (int i = 1; i < argc; i++)
-1
View File
@@ -68,7 +68,6 @@ FLAGS="$FLAGS -target $TARGET"
FLAGS="$FLAGS -rtlib=compiler-rt"
FLAGS="$FLAGS -stdlib=libc++"
FLAGS="$FLAGS -fuse-ld=lld"
FLAGS="$FLAGS -fuse-cxa-atexit"
FLAGS="$FLAGS -Qunused-arguments"
$CCACHE "$CLANG" $FLAGS "$@"