[cfe-commits] r113683 - /cfe/trunk/lib/Driver/Tools.cpp
Anton Korobeynikov
asl at math.spbu.ru
Sat Sep 11 04:17:06 PDT 2010
Author: asl
Date: Sat Sep 11 06:17:06 2010
New Revision: 113683
URL: http://llvm.org/viewvc/llvm-project?rev=113683&view=rev
Log:
Disable cxa_atexit by default on MingW.
Patch by Dimitry Andric!
Modified:
cfe/trunk/lib/Driver/Tools.cpp
Modified: cfe/trunk/lib/Driver/Tools.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Driver/Tools.cpp?rev=113683&r1=113682&r2=113683&view=diff
==============================================================================
--- cfe/trunk/lib/Driver/Tools.cpp (original)
+++ cfe/trunk/lib/Driver/Tools.cpp Sat Sep 11 06:17:06 2010
@@ -1207,8 +1207,10 @@
CmdArgs.push_back("-fno-threadsafe-statics");
// -fuse-cxa-atexit is default.
- if (KernelOrKext || !Args.hasFlag(options::OPT_fuse_cxa_atexit,
- options::OPT_fno_use_cxa_atexit))
+ if (KernelOrKext ||
+ !Args.hasFlag(options::OPT_fuse_cxa_atexit, options::OPT_fno_use_cxa_atexit,
+ getToolChain().getTriple().getOS() != llvm::Triple::MinGW32 &&
+ getToolChain().getTriple().getOS() != llvm::Triple::MinGW64))
CmdArgs.push_back("-fno-use-cxa-atexit");
// -fms-extensions=0 is default.
More information about the cfe-commits
mailing list