Skip to content

Commit edc794d

Browse files
committed
more fixes
1 parent 3b1211b commit edc794d

File tree

2 files changed

+5
-30
lines changed

2 files changed

+5
-30
lines changed

cc/repositories.bzl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ def swift_cc_toolchain_llvm20():
111111
build_file = Label("@rules_swiftnav//cc/toolchains/llvm20:llvm.BUILD.bzl"),
112112
url = X86_64_DARWIN_LLVM20,
113113
strip_prefix = "LLVM-20.1.7-macOS-X64",
114-
# TODO: Add sha256 hash for integrity
114+
sha256 = "8494c98a774051a40bfe1187a2d6442f4bc107598998bbe1673d9bb1572cfd6f"
115115
)
116116

117117
maybe(
@@ -120,7 +120,7 @@ def swift_cc_toolchain_llvm20():
120120
build_file = Label("@rules_swiftnav//cc/toolchains/llvm20:llvm.BUILD.bzl"),
121121
url = AARCH64_LINUX_LLVM20,
122122
strip_prefix = "LLVM-20.1.7-Linux-ARM64",
123-
# TODO: Add sha256 hash for integrity
123+
sha256 = "832f2802a29457dc758f56e26e98558c6cd0e45fcd07186f540cb6e7f4e59385",
124124
)
125125

126126
maybe(
@@ -129,7 +129,7 @@ def swift_cc_toolchain_llvm20():
129129
build_file = Label("@rules_swiftnav//cc/toolchains/llvm20:llvm.BUILD.bzl"),
130130
url = X86_64_LINUX_LLVM20,
131131
strip_prefix = "LLVM-20.1.7-Linux-X64",
132-
# TODO: Add sha256 hash for integrity
132+
sha256 = "8494c98a774051a40bfe1187a2d6442f4bc107598998bbe1673d9bb1572cfd6f",
133133
)
134134

135135
def aarch64_sysroot():

cc/toolchains/llvm20/x86_64-aarch64-linux/BUILD.bazel

Lines changed: 2 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -106,13 +106,8 @@ cc_toolchain_config(
106106
cxx_builtin_include_directories = [
107107
"%sysroot%/usr/include",
108108
],
109-
extra_copts = select({
110-
"@rules_swiftnav//cc/constraints:graviton2": ["-mcpu=neoverse-n1"],
111-
"@rules_swiftnav//cc/constraints:graviton3": ["-mcpu=neoverse-512tvb"],
112-
"//conditions:default": [],
113-
}),
114109
host_system_name = X86_64_LINUX,
115-
target_cpu = "k8",
110+
target_cpu = "aarch64",
116111
target_libc = "glibc_unknown",
117112
target_system_name = AARCH64_LINUX,
118113
tool_paths = {
@@ -146,34 +141,14 @@ cc_toolchain(
146141
)
147142

148143
toolchain(
149-
name = "cc-toolchain-aarch64-bullseye-graviton2",
144+
name = "cc-toolchain-aarch64-linux",
150145
exec_compatible_with = [
151146
"@platforms//cpu:x86_64",
152147
"@platforms//os:linux",
153148
],
154149
target_compatible_with = [
155150
"@platforms//os:linux",
156151
"@platforms//cpu:aarch64",
157-
"@rules_swiftnav//cc/constraints:glibc_2_31",
158-
"@rules_swiftnav//cc/constraints:graviton2",
159-
"@rules_swiftnav//cc/constraints:llvm20_toolchain",
160-
],
161-
target_settings = None,
162-
toolchain = ":cc-clang-x86_64-aarch64-linux",
163-
toolchain_type = "@bazel_tools//tools/cpp:toolchain_type",
164-
)
165-
166-
toolchain(
167-
name = "cc-toolchain-aarch64-bullseye-graviton3",
168-
exec_compatible_with = [
169-
"@platforms//cpu:x86_64",
170-
"@platforms//os:linux",
171-
],
172-
target_compatible_with = [
173-
"@platforms//os:linux",
174-
"@platforms//cpu:aarch64",
175-
"@rules_swiftnav//cc/constraints:glibc_2_31",
176-
"@rules_swiftnav//cc/constraints:graviton3",
177152
"@rules_swiftnav//cc/constraints:llvm20_toolchain",
178153
],
179154
target_settings = None,

0 commit comments

Comments
 (0)