From: NAKAMURA Takumi Date: Sun, 10 Oct 2010 01:53:03 +0000 (+0000) Subject: lib/Driver/Tools.cpp: Disable cxa_atexit by default also on Cygwin. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=cd7a30b12c6780d790f4c7924aff05caee05670d;p=clang lib/Driver/Tools.cpp: Disable cxa_atexit by default also on Cygwin. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@116161 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Driver/Tools.cpp b/lib/Driver/Tools.cpp index a98609dda4..31f9c08eeb 100644 --- a/lib/Driver/Tools.cpp +++ b/lib/Driver/Tools.cpp @@ -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");