[all-commits] [llvm/llvm-project] 55ba08: [Clang] Let the linker choose shared or static lib...
Petr Hosek via All-commits
all-commits at lists.llvm.org
Wed Jun 15 11:22:28 PDT 2022
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 55ba0830e4591c9767bbd4530639976f1242a61a
https://github.com/llvm/llvm-project/commit/55ba0830e4591c9767bbd4530639976f1242a61a
Author: Petr Hosek <phosek at google.com>
Date: 2022-06-15 (Wed, 15 Jun 2022)
Changed paths:
M clang/lib/Driver/ToolChains/CommonArgs.cpp
M clang/test/Driver/compiler-rt-unwind.c
Log Message:
-----------
[Clang] Let the linker choose shared or static libunwind unless specified
We shouldn't assume that libunwind.so is available. Rather can defer
the decision to the linker which defaults to libunwind.so, but if .so
isn't available, it'd pick libunwind.a. Users can use -static-libgcc
and -shared-libgcc to override this behavior and explicitly choose
the version they want.
Differential Revision: https://reviews.llvm.org/D127528
More information about the All-commits
mailing list