Default to not using __cxa_atexit on Solaris.

llvm-svn: 150883
This commit is contained in:
David Chisnall 2012-02-18 17:00:56 +00:00
parent cb5e468106
commit c616e95162
1 changed files with 1 additions and 0 deletions

View File

@ -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");