Skip to content

Commit ca33c1b

Browse files
nit
1 parent 5dd9db9 commit ca33c1b

2 files changed

Lines changed: 2 additions & 27 deletions

File tree

MODULE.bazel

Lines changed: 0 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -99,28 +99,3 @@ http_archive(
9999
build_file = "//external:boost.BUILD",
100100
)
101101

102-
103-
###
104-
105-
cc_compatibility_proxy = use_extension("@rules_cc//cc:extensions.bzl", "compatibility_proxy")
106-
use_repo(cc_compatibility_proxy, "cc_compatibility_proxy")
107-
108-
bazel_dep(name = "toolchains_llvm", version = "1.6.0")
109-
110-
llvm = use_extension("@toolchains_llvm//toolchain/extensions:llvm.bzl", "llvm")
111-
llvm.toolchain(
112-
name = "llvm_toolchain",
113-
llvm_version = "17.0.6", # Downloads a self-contained Clang/LLVM 17
114-
)
115-
116-
# 3. Inject your custom GLIBC 2.28 sysroot
117-
llvm.sysroot(
118-
name = "llvm_toolchain",
119-
label = "//custom_sysroot:sysroot",
120-
targets = ["linux-x86_64"], # Assuming you are building for x86_64 Linux
121-
)
122-
use_repo(llvm, "llvm_toolchain")
123-
124-
# 4. Register the toolchain to override the host OS compiler
125-
register_toolchains("@llvm_toolchain//:all")
126-

devtools/build_with_custom_toolchain.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,8 +57,8 @@ register_toolchains(\"@llvm_toolchain//:all\")
5757
""" >> MODULE.bazel
5858

5959

60-
apt-get update
61-
apt-get install -y libxml2
60+
sudo apt-get update
61+
sudo apt-get install -y libxml2
6262

6363
cd custom_sysroot/lib64/
6464
rm -f ld-linux-x86-64.so.2

0 commit comments

Comments
 (0)