Use platform specific configs in bazelrc to reduce scope of settings (#1144)

This commit is contained in:
James Sharpe 2023-12-21 11:01:32 +00:00 committed by GitHub
parent 18dcce582f
commit b8c5967a1b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 8 additions and 7 deletions

View File

@ -1,20 +1,21 @@
build --enable_platform_specific_config
# Required by Meson on Windows # Required by Meson on Windows
build --action_env=PROCESSOR_ARCHITECTURE build:windows --action_env=PROCESSOR_ARCHITECTURE
build --action_env=USERPROFILE build:windows --action_env=USERPROFILE
# Required when using the built meson toolchain on windows # Required when using the built meson toolchain on windows
build --nobuild_python_zip build:windows --nobuild_python_zip
# Required by Meson and built pkg-config on Windows # Required by Meson and built pkg-config on Windows
build --enable_runfiles build:windows --enable_runfiles
# These are required otherwise paths are too long # These are required otherwise paths are too long
startup --windows_enable_symlinks startup --windows_enable_symlinks
build --action_env=MSYS=winsymlinks:nativestrict build:windows --action_env=MSYS=winsymlinks:nativestrict
test --action_env=MSYS=winsymlinks:nativestrict test:windows --action_env=MSYS=winsymlinks:nativestrict
# Enable CC toolchain that supports iOS from https://github.com/bazelbuild/apple_support # 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 --apple_crosstool_top=@local_config_apple_cc//:toolchain
build:macos --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 build:macos --host_crosstool_top=@local_config_apple_cc//:toolchain