File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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-
Original file line number Diff line number Diff 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
6363cd custom_sysroot/lib64/
6464rm -f ld-linux-x86-64.so.2
You can’t perform that action at this time.
0 commit comments