]> granicus.if.org Git - clang/commitdiff
lib/Driver/Tools.cpp: Disable cxa_atexit by default also on Cygwin.
authorNAKAMURA Takumi <geek4civic@gmail.com>
Sun, 10 Oct 2010 01:53:03 +0000 (01:53 +0000)
committerNAKAMURA Takumi <geek4civic@gmail.com>
Sun, 10 Oct 2010 01:53:03 +0000 (01:53 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@116161 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Driver/Tools.cpp

index a98609dda407ee59aaf269d731425827f2c00876..31f9c08eeb4916635e1422e437119386e3649be8 100644 (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");