Skip to content

Commit bc6df72

Browse files
committed
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.
1 parent 7f2171d commit bc6df72

File tree

2 files changed

+0
-2
lines changed

2 files changed

+0
-2
lines changed

wrappers/clang-target-wrapper.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -201,7 +201,6 @@ int _tmain(int argc, TCHAR* argv[]) {
201201
exec_argv[arg++] = _T("-rtlib=compiler-rt");
202202
exec_argv[arg++] = _T("-stdlib=libc++");
203203
exec_argv[arg++] = _T("-fuse-ld=lld");
204-
exec_argv[arg++] = _T("-fuse-cxa-atexit");
205204
exec_argv[arg++] = _T("-Qunused-arguments");
206205

207206
for (int i = 1; i < argc; i++)

wrappers/clang-target-wrapper.sh

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,6 @@ FLAGS="$FLAGS -target $TARGET"
6868
FLAGS="$FLAGS -rtlib=compiler-rt"
6969
FLAGS="$FLAGS -stdlib=libc++"
7070
FLAGS="$FLAGS -fuse-ld=lld"
71-
FLAGS="$FLAGS -fuse-cxa-atexit"
7271
FLAGS="$FLAGS -Qunused-arguments"
7372

7473
$CCACHE "$CLANG" $FLAGS "$@"

0 commit comments

Comments
 (0)