-
Notifications
You must be signed in to change notification settings - Fork 249
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add new darwin CC toolchain for tests
Bazel 7.x is going to remove the CC toolchain that supports iOS and use the unix toolchain for macOS support. Since there are some tests that use the iOS toolchain we need to set that up for testing.
- Loading branch information
Showing
3 changed files
with
21 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,13 @@ | ||
|
||
# Required for Windows | ||
build --enable_runfiles | ||
|
||
# These are required otherwise paths are too long | ||
startup --windows_enable_symlinks | ||
build --action_env=MSYS=winsymlinks:nativestrict | ||
test --action_env=MSYS=winsymlinks:nativestrict | ||
|
||
# Enable CC toolchain that supports iOS from https://github.com/bazelbuild/apple_support | ||
build --enable_platform_specific_config | ||
build:macos --apple_crosstool_top=@local_config_apple_cc//:toolchain | ||
build:macos --crosstool_top=@local_config_apple_cc//:toolchain | ||
build:macos --host_crosstool_top=@local_config_apple_cc//:toolchain |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
--- crosstool/setup.bzl | ||
+++ crosstool/setup.bzl | ||
@@ -66,5 +66,3 @@ def apple_cc_configure(): | ||
def _apple_cc_configure_extension_impl(_): | ||
_apple_cc_autoconf_toolchains(name = "local_config_apple_cc_toolchains") | ||
_apple_cc_autoconf(name = "local_config_apple_cc") | ||
- | ||
-apple_cc_configure_extension = module_extension(implementation = _apple_cc_configure_extension_impl) |