Skip to content

Commit

Permalink
Use platform specific configs in bazelrc to reduce scope of settings (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
jsharpe authored Dec 21, 2023
1 parent 18dcce5 commit b8c5967
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions examples/.bazelrc
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit b8c5967

Please sign in to comment.