diff options
author | NAKAMURA Takumi <geek4civic@gmail.com> | 2010-10-10 01:53:03 +0000 |
---|---|---|
committer | NAKAMURA Takumi <geek4civic@gmail.com> | 2010-10-10 01:53:03 +0000 |
commit | cd7a30b12c6780d790f4c7924aff05caee05670d (patch) | |
tree | 399f7b9780b0f77a794179003364f97ea299c5b2 /lib/Driver/Tools.cpp | |
parent | ce2d186a421526e94d9e417ced141ae6c891cf48 (diff) |
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
Diffstat (limited to 'lib/Driver/Tools.cpp')
-rw-r--r-- | lib/Driver/Tools.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
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"); |