]> granicus.if.org Git - clang/commit
Driver/Darwin: Set the DWARF version based on the deployment target.
authorAdrian Prantl <aprantl@apple.com>
Mon, 17 Oct 2016 19:36:18 +0000 (19:36 +0000)
committerAdrian Prantl <aprantl@apple.com>
Mon, 17 Oct 2016 19:36:18 +0000 (19:36 +0000)
commitd12a0016d3206533baeb500f0ad2fc8abcc086d2
treec27e232e77ec9124d91dc38b8e232ddacc89b4b3
parent147b50f9a6934437647b4ba021697b9d83ec5644
Driver/Darwin: Set the DWARF version based on the deployment target.

System utilities such as atos only support DWARF 4 on OS X 10.11+ and
iOS 9+. We thus want to enable DWARF 4 only if the deployment target
has a recent enough operating system version and use DWARF 2 for older
systems.

<rdar://problem/28766743>

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@284416 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Driver/ToolChains.cpp
lib/Driver/ToolChains.h
test/Driver/clang-g-opts.c
test/Driver/debug-options.c