forked from OSchip/llvm-project
lib/Driver/Tools.cpp: Disable cxa_atexit by default also on Cygwin.
llvm-svn: 116161
This commit is contained in:
parent
b8d7efe785
commit
6bdc8a2d8a
|
@ -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");
|
||||
|
|
Loading…
Reference in New Issue