mirror of
https://github.com/RPCSX/llvm.git
synced 2025-01-09 05:31:19 +00:00
4d3523945d
Modify the --system-libs option in llvm-config to print system libs only when using static linking. The system libraries are irrelevant when linking to a shared library since the library has appropriate library dependencies embedded. Modify the --system-libs test appropriately to force static linking, and disable it if static libs are not available (i.e. BUILD_SHARED_LIBS is enabled). Differential Revision: https://reviews.llvm.org/D27805 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@291285 91177308-0d34-0410-b5e6-96231b3b80d8
7 lines
161 B
Plaintext
7 lines
161 B
Plaintext
RUN: llvm-config --link-static --system-libs 2>&1 | FileCheck %s
|
|
REQUIRES: static-libs
|
|
UNSUPPORTED: system-windows
|
|
CHECK: -l
|
|
CHECK-NOT: error
|
|
CHECK-NOT: warning
|