Skip to content

Commit

Permalink
Add environ to repository rule (#287)
Browse files Browse the repository at this point in the history
Currently if you change this env var's value then re-run your build, the
repository rule won't re-trigger so you'll get stale results.

Instead, make the repository rule re-trigger if the env var changes.
  • Loading branch information
illicitonion authored Nov 29, 2023
1 parent 2d20d9e commit 157f550
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions crosstool/setup.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ def _apple_cc_autoconf_impl(repository_ctx):
_apple_cc_autoconf = repository_rule(
environ = [
_DISABLE_ENV_VAR,
"BAZEL_ALLOW_NON_APPLICATIONS_XCODE", # Signals to configure_osx_toolchain that some Xcodes may live outside of /Applications and we need to probe further when detecting/configuring them.
"DEVELOPER_DIR", # Used for making sure we use the right Xcode for compiling toolchain binaries
"GCOV", # TODO: Remove this
"USE_CLANG_CL", # Kept as a hack for those who rely on this invaliding the toolchain
Expand Down

0 comments on commit 157f550

Please sign in to comment.