Default to not using __cxa_atexit on Solaris.
llvm-svn: 150883
This commit is contained in:
parent
cb5e468106
commit
c616e95162
|
@ -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");
|
||||
|
|
Loading…
Reference in New Issue