summaryrefslogtreecommitdiff
path: root/utils
diff options
context:
space:
mode:
authorMichael Jones <michaelrj@google.com>2023-05-02 11:24:19 -0700
committerMichael Jones <michaelrj@google.com>2023-05-02 14:55:46 -0700
commit48882561253fa66deb9362c6b43f3bcda1a958f7 (patch)
tree2f68f8a97de05269cb79d91bcca06ba3efa226de /utils
parent2b6c5bb995be1b675c1d92e2d46403c76764e5c7 (diff)
downloadllvm-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.bzl1
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
)