]> granicus.if.org Git - clang/commit
Add --unwindlib=[libgcc|compiler-rt] to parallel --rtlib= [take 2]
authorSterling Augustine <saugustine@google.com>
Tue, 19 Mar 2019 20:01:59 +0000 (20:01 +0000)
committerSterling Augustine <saugustine@google.com>
Tue, 19 Mar 2019 20:01:59 +0000 (20:01 +0000)
commit344aa82a52f2fae527f58284567ae305a314f7a8
tree5d41cdad4466d4947b27b853c16b636f49e96cac
parent98a21c18f23597a8fb89d89a33888fa72a74b28d
Add --unwindlib=[libgcc|compiler-rt] to parallel --rtlib= [take 2]

"clang++ hello.cc --rtlib=compiler-rt"

now can works without specifying additional unwind or exception
handling libraries.

This reworked version of the feature no longer modifies today's default
unwind library for compiler-rt: which is nothing. Rather, a user
can specify -DCLANG_DEFAULT_UNWINDLIB=libunwind when configuring
the compiler.

This should address the issues from the previous version.

Update tests for new --unwindlib semantics.

Differential Revision: https://reviews.llvm.org/D59109

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@356508 91177308-0d34-0410-b5e6-96231b3b80d8
CMakeLists.txt
include/clang/Basic/DiagnosticDriverKinds.td
include/clang/Config/config.h.cmake
include/clang/Driver/Options.td
include/clang/Driver/ToolChain.h
lib/Driver/ToolChain.cpp
lib/Driver/ToolChains/CommonArgs.cpp
test/Driver/compiler-rt-unwind.c [new file with mode: 0644]