]> granicus.if.org Git - clang/commit
Driver: default to `-fno-use-cxatexit` on Windows
authorSaleem Abdulrasool <compnerd@compnerd.org>
Mon, 11 Sep 2017 20:18:09 +0000 (20:18 +0000)
committerSaleem Abdulrasool <compnerd@compnerd.org>
Mon, 11 Sep 2017 20:18:09 +0000 (20:18 +0000)
commit13258ab9210ece98081740f3b76470a6e77a0012
tree4cb096b8931256c32c57c8107f2d005c2066a1eb
parentaae8a30c39b60e5ef14e565557b7fc398112d1e5
Driver: default to `-fno-use-cxatexit` on Windows

This primarily impacts the Windows MSVC and Windows itanium
environments.  Windows MSVC does not use `__cxa_atexit` and Itanium
follows suit.  Simplify the logic for the default value calculation and
blanket the Windows environments to default to off for use of
`__cxa_atexit`.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@312941 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Driver/ToolChains/Clang.cpp
test/Driver/cxa-atexit.cpp [new file with mode: 0644]