[cfe-commits] r116161 - /cfe/trunk/lib/Driver/Tools.cpp
NAKAMURA Takumi
geek4civic at gmail.com
Sat Oct 9 18:53:03 PDT 2010
Author: chapuni
Date: Sat Oct 9 20:53:03 2010
New Revision: 116161
URL: http://llvm.org/viewvc/llvm-project?rev=116161&view=rev
Log:
lib/Driver/Tools.cpp: Disable cxa_atexit by default also on Cygwin.
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=116161&r1=116160&r2=116161&view=diff
==============================================================================
--- cfe/trunk/lib/Driver/Tools.cpp (original)
+++ cfe/trunk/lib/Driver/Tools.cpp Sat Oct 9 20:53:03 2010
@@ -1276,6 +1276,7 @@
// -fuse-cxa-atexit is default.
if (KernelOrKext ||
!Args.hasFlag(options::OPT_fuse_cxa_atexit, options::OPT_fno_use_cxa_atexit,
+ getToolChain().getTriple().getOS() != llvm::Triple::Cygwin &&
getToolChain().getTriple().getOS() != llvm::Triple::MinGW32 &&
getToolChain().getTriple().getOS() != llvm::Triple::MinGW64))
CmdArgs.push_back("-fno-use-cxa-atexit");
More information about the cfe-commits
mailing list