Skip to content

Commit 44800fc

Browse files
committed
tools/bazel:toolchain move to trunk
1 parent 91485ea commit 44800fc

File tree

5 files changed

+15
-308
lines changed

5 files changed

+15
-308
lines changed

.github/workflows/release.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -32,11 +32,11 @@ jobs:
3232
run: |
3333
sudo apt-get update
3434
sudo apt-get install crossbuild-essential-arm64 -y
35-
sudo curl -fLo /usr/local/bin/bazel "https://github.com/bazelbuild/bazel/releases/download/6.0.0/bazel-6.0.0-linux-x86_64"
35+
sudo curl -fLo /usr/local/bin/bazel "https://github.com/bazelbuild/bazel/releases/download/6.5.0/bazel-6.5.0-linux-x86_64"
3636
sudo chmod +x /usr/local/bin/bazel
3737
- name: Build
3838
run: |
39-
bazel build -c opt --cpu=aarch64 --crosstool_top=tools/bazel:toolchain --platforms=tools/bazel:linux-arm64 net/tools:miracle-proxy
39+
bazel build -c opt --cpu=aarch64 --crosstool_top=@org_iceboy_trunk//third_party/linux_crosstool net/tools:miracle-proxy
4040
ln bazel-bin/net/tools/miracle-proxy miracle-proxy-${GITHUB_REF_NAME}-linux-arm64
4141
- name: Release
4242
uses: softprops/action-gh-release@v1

WORKSPACE

+1-1
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,6 @@ boost_deps()
4747

4848
git_repository(
4949
name = "org_iceboy_trunk",
50-
commit = "0be2a93fa780f608f8bfffa48a5e0367a5c08605",
50+
commit = "24fc6171c1512293423d9c2fb093ac2bec86f728",
5151
remote = "https://github.com/iceboy233/trunk.git",
5252
)

third_party/blake3/BUILD

+12-19
Original file line numberDiff line numberDiff line change
@@ -8,14 +8,14 @@ cc_library(
88
"blake3_impl.h",
99
"blake3_portable.c",
1010
] + select({
11-
":linux_amd64": [
11+
":linux_x86_64": [
1212
"blake3_sse2_x86-64_unix.S",
1313
"blake3_sse41_x86-64_unix.S",
1414
"blake3_avx2_x86-64_unix.S",
1515
"blake3_avx512_x86-64_unix.S",
1616
],
17-
":linux_arm64": ["blake3_neon.c"],
18-
":windows_amd64": [
17+
":linux_aarch64": ["blake3_neon.c"],
18+
":windows_x86_64": [
1919
"blake3_sse2_x86-64_windows_msvc.asm",
2020
"blake3_sse41_x86-64_windows_msvc.asm",
2121
"blake3_avx2_x86-64_windows_msvc.asm",
@@ -25,27 +25,20 @@ cc_library(
2525
hdrs = ["blake3.h"],
2626
)
2727

28-
# TODO: Move this to a shared place.
2928
config_setting(
30-
name = "linux_amd64",
31-
constraint_values = [
32-
"@platforms//cpu:x86_64",
33-
"@platforms//os:linux",
34-
],
29+
name = "linux_x86_64",
30+
values = {"cpu": "k8"},
31+
constraint_values = ["@platforms//os:linux"],
3532
)
3633

3734
config_setting(
38-
name = "linux_arm64",
39-
constraint_values = [
40-
"@platforms//cpu:arm64",
41-
"@platforms//os:linux",
42-
],
35+
name = "linux_aarch64",
36+
values = {"cpu": "aarch64"},
37+
constraint_values = ["@platforms//os:linux"],
4338
)
4439

4540
config_setting(
46-
name = "windows_amd64",
47-
constraint_values = [
48-
"@platforms//cpu:x86_64",
49-
"@platforms//os:windows",
50-
],
41+
name = "windows_x86_64",
42+
values = {"cpu": "x64_windows_msvc"},
43+
constraint_values = ["@platforms//os:windows"],
5144
)

tools/bazel/BUILD

-112
This file was deleted.

tools/bazel/cc_toolchain_config.bzl

-174
This file was deleted.

0 commit comments

Comments
 (0)