Use platform specific configs in bazelrc to reduce scope of settings (#1144)
This commit is contained in:
parent
18dcce582f
commit
b8c5967a1b
|
@ -1,20 +1,21 @@
|
|||
build --enable_platform_specific_config
|
||||
|
||||
# Required by Meson on Windows
|
||||
build --action_env=PROCESSOR_ARCHITECTURE
|
||||
build --action_env=USERPROFILE
|
||||
build:windows --action_env=PROCESSOR_ARCHITECTURE
|
||||
build:windows --action_env=USERPROFILE
|
||||
|
||||
# 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
|
||||
build --enable_runfiles
|
||||
build:windows --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
|
||||
build:windows --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
|
||||
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
|
||||
|
|
Loading…
Reference in New Issue