From: David Chisnall Date: Sat, 18 Feb 2012 17:00:56 +0000 (+0000) Subject: Default to not using __cxa_atexit on Solaris. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=b8197bcdd7453ef85d282b0e5141761f4bd83b64;p=clang Default to not using __cxa_atexit on Solaris. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@150883 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Driver/Tools.cpp b/lib/Driver/Tools.cpp index 7d8dbb526d..9fd55762b1 100644 --- a/lib/Driver/Tools.cpp +++ b/lib/Driver/Tools.cpp @@ -2079,6 +2079,7 @@ void Clang::ConstructJob(Compilation &C, const JobAction &JA, !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");