diff options
author | Michael Jones <michaelrj@google.com> | 2023-05-02 11:24:19 -0700 |
---|---|---|
committer | Michael Jones <michaelrj@google.com> | 2023-05-02 14:55:46 -0700 |
commit | 48882561253fa66deb9362c6b43f3bcda1a958f7 (patch) | |
tree | 2f68f8a97de05269cb79d91bcca06ba3efa226de /utils | |
parent | 2b6c5bb995be1b675c1d92e2d46403c76764e5c7 (diff) | |
download | llvm-48882561253fa66deb9362c6b43f3bcda1a958f7.tar.gz |
[libc][bazel] static link test targets
This solves issues caused by the symbols for internal components being
marked as hidden. When dynamically linked, the tests of internal
components, such as printf_parser_test, fail due to the symbols being
unavailable.
Reviewed By: sivachandra
Differential Revision: https://reviews.llvm.org/D149674
Diffstat (limited to 'utils')
-rw-r--r-- | utils/bazel/llvm-project-overlay/libc/test/libc_test_rules.bzl | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/utils/bazel/llvm-project-overlay/libc/test/libc_test_rules.bzl b/utils/bazel/llvm-project-overlay/libc/test/libc_test_rules.bzl index b4e473d932fd..693545a8109f 100644 --- a/utils/bazel/llvm-project-overlay/libc/test/libc_test_rules.bzl +++ b/utils/bazel/llvm-project-overlay/libc/test/libc_test_rules.bzl @@ -33,5 +33,6 @@ def libc_test(name, srcs, libc_function_deps, deps = [], **kwargs): "//libc/test/UnitTest:LibcUnitTest", ] + deps, features = ["-link_llvmlibc"], # Do not link libllvmlibc.a + linkstatic = 1, **kwargs ) |