[cfe-commits] r150883 - /cfe/trunk/lib/Driver/Tools.cpp
David Chisnall
csdavec at swan.ac.uk
Sat Feb 18 09:00:56 PST 2012
Author: theraven
Date: Sat Feb 18 11:00:56 2012
New Revision: 150883
URL: http://llvm.org/viewvc/llvm-project?rev=150883&view=rev
Log:
Default to not using __cxa_atexit on Solaris.
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=150883&r1=150882&r2=150883&view=diff
==============================================================================
--- cfe/trunk/lib/Driver/Tools.cpp (original)
+++ cfe/trunk/lib/Driver/Tools.cpp Sat Feb 18 11:00:56 2012
@@ -2079,6 +2079,7 @@
!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::Solaris &&
getToolChain().getTriple().getArch() !=
llvm::Triple::hexagon))
CmdArgs.push_back("-fno-use-cxa-atexit");
More information about the cfe-commits
mailing list