File tree Expand file tree Collapse file tree 2 files changed +7
-1
lines changed
cc/toolchains/llvm/x86_64-aarch64-linux Expand file tree Collapse file tree 2 files changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -101,7 +101,12 @@ cc_toolchain_config(
101
101
name = "local-x86_64-aarch64-linux" ,
102
102
abi_libc_version = "glibc_unknown" ,
103
103
abi_version = "clang" ,
104
- builtin_sysroot = "external/aarch64-sysroot" ,
104
+ builtin_sysroot = select ({
105
+ "@rules_swiftnav//cc:_use_libcpp" : None ,
106
+ # Remove once bzlmod is enabled by default
107
+ "@rules_swiftnav//cc:_enable_bzlmod" : "external/rules_swiftnav++swift_cc_toolchain_extension+aarch64-sysroot" ,
108
+ "//conditions:default" : "external/aarch64-sysroot" ,
109
+ }),
105
110
compiler = "clang" ,
106
111
cxx_builtin_include_directories = [
107
112
"%sysroot%/usr/include" ,
Original file line number Diff line number Diff line change 35
35
36
36
tool_name=$( basename " ${BASH_SOURCE[0]} " )
37
37
toolchain_bindir=external/x86_64-linux-llvm/bin
38
+ toolchain_bindir_as_bzlmod=" external/rules_swiftnav++swift_cc_toolchain_extension+x86_64-linux-llvm/bin"
38
39
39
40
if [[ -f " ${toolchain_bindir} " /" ${tool_name} " ]]; then
40
41
# We're running under _execroot_, call the real tool.
You can’t perform that action at this time.
0 commit comments