lib/Driver/Tools.cpp: Disable cxa_atexit by default also on Cygwin.

llvm-svn: 116161
This commit is contained in:
NAKAMURA Takumi 2010-10-10 01:53:03 +00:00
parent b8d7efe785
commit 6bdc8a2d8a
1 changed files with 1 additions and 0 deletions

View File

@ -1276,6 +1276,7 @@ void Clang::ConstructJob(Compilation &C, const JobAction &JA,
// -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");