Skip to content

Commit c217c03

Browse files
author
Siddhartha Bagaria
committed
Do not force PIC linkage in external tests
For reasons unknown, rules_go linkages are happening with PIC forced, but abseil is not. We can re-enable external tests on LLVM 15 by explicitly saying `-nopie` to the linker. However, abseil builds will complain about the flag.
1 parent 87b25ed commit c217c03

File tree

3 files changed

+2
-20
lines changed

3 files changed

+2
-20
lines changed

tests/MODULE.bazel

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -93,14 +93,6 @@ llvm.toolchain(
9393
)
9494
use_repo(llvm, "llvm_toolchain_with_urls")
9595

96-
# # This is the latest version of LLVM that seems to work with rules_go; later
97-
# # versions cause the tests to crash.
98-
llvm.toolchain(
99-
name = "llvm_toolchain_14_0_0",
100-
llvm_version = "14.0.0",
101-
)
102-
use_repo(llvm, "llvm_toolchain_14_0_0")
103-
10496
# # This is the last known LLVM version with zlib support in ld.lld. Without zlib
10597
# # support, if the installed gcc toolchain has compressed sections in its object
10698
# # files, then ld.lld won't be able to process them. Example is archlinux docker

tests/WORKSPACE

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -66,13 +66,6 @@ llvm_toolchain(
6666
},
6767
)
6868

69-
# This is the latest version of LLVM that seems to work with rules_go; later
70-
# versions cause the tests to crash.
71-
llvm_toolchain(
72-
name = "llvm_toolchain_14_0_0",
73-
llvm_version = "14.0.0",
74-
)
75-
7669
# This is the last known LLVM version with zlib support in ld.lld. Without zlib
7770
# support, if the installed gcc toolchain has compressed sections in its object
7871
# files, then ld.lld won't be able to process them. Example is archlinux docker

tests/scripts/run_external_tests.sh

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -31,11 +31,8 @@ fi
3131

3232
test_args=(
3333
"${common_test_args[@]}"
34-
# Fix LLVM version to be 14.0.0 because that's the last known version with
35-
# which the tests in rules_go pass.
36-
"--extra_toolchains=@llvm_toolchain_14_0_0//:all"
37-
# Options needed for LLVM 15 when we switch to using it for these tests
38-
#"--copt=-Wno-deprecated-builtins" # https://github.com/abseil/abseil-cpp/issues/1201
34+
"--linkopt=-nopie" # https://github.com/grailbio/bazel-toolchain/issues/183
35+
"--copt=-Wno-deprecated-builtins" # https://github.com/abseil/abseil-cpp/issues/1201
3936
)
4037

4138
# We exclude the following targets:

0 commit comments

Comments
 (0)