Skip to content

Commit

Permalink
Cherry-pick required commits into 7.0.0-pre.20230810.1rc1 (#19298)
Browse files Browse the repository at this point in the history
-
138f06f
-
d0de5e0

---------

Co-authored-by: Googler <pcloudy@google.com>
  • Loading branch information
fweikert and meteorcloudy authored Aug 22, 2023
1 parent c279c7b commit 4d157ee
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 2 deletions.
3 changes: 1 addition & 2 deletions .bazelci/build_bazel_binaries.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,7 @@ platforms:
- "--host_copt=-w"
- "-c"
- "opt"
- "--cpu=x64_arm64_windows"
- "--incompatible_enable_cc_toolchain_resolution"
- "--config=windows_arm64"
build_targets:
- "//src:bazel.exe"
- "//src:bazel_nojdk.exe"
3 changes: 3 additions & 0 deletions .bazelrc
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,9 @@ build:macos --macos_minimum_os=10.11
# Therefore, use the local detected Python toolchain on Windows.
build:windows --extra_toolchains=@bazel_tools//tools/python:autodetecting_toolchain

build:windows_arm64 --platforms=//:windows_arm64
build:windows_arm64 --extra_toolchains=@local_config_cc//:cc-toolchain-arm64_windows

# Enable Bzlmod
build:bzlmod --enable_bzlmod
build:bzlmod --check_direct_dependencies=error
Expand Down
8 changes: 8 additions & 0 deletions BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -248,6 +248,14 @@ platform(
parents = ["@local_config_platform//:host"],
)

platform(
name = "windows_arm64",
constraint_values = [
"@platforms//os:windows",
"@platforms//cpu:arm64",
],
)

REMOTE_PLATFORMS = ("rbe_ubuntu1804_java11",)

[
Expand Down
3 changes: 3 additions & 0 deletions third_party/blake3/blake3.BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,9 @@ cc_library(
"-DBLAKE3_NO_AVX512",
],
"@bazel_tools//src/conditions:windows_x64": [],
"@bazel_tools//src/conditions:windows_arm64": [
"-DBLAKE3_USE_NEON=0",
],
"@bazel_tools//src/conditions:darwin_arm64": [
"-DBLAKE3_USE_NEON=1",
],
Expand Down

0 comments on commit 4d157ee

Please sign in to comment.