diff --git a/.bazelrc b/.bazelrc index 5f8123c7b3442..71683b82ba62b 100644 --- a/.bazelrc +++ b/.bazelrc @@ -20,6 +20,12 @@ build --java_runtime_version=remotejdk_11 build --tool_java_runtime_version=remotejdk_11 build --platform_mappings=bazel/platform_mappings +# Pass PATH, CC, CXX and LLVM_CONFIG variables from the environment. +build --action_env=CC +build --action_env=CXX +build --action_env=LLVM_CONFIG +build --action_env=PATH + build --enable_platform_specific_config # Allow tags to influence execution requirements @@ -39,12 +45,6 @@ build:linux --action_env=BAZEL_LINKOPTS=-lm # We already have absl in the build, define absl=1 to tell googletest to use absl for backtrace. build --define absl=1 -# Pass PATH, CC, CXX and LLVM_CONFIG variables from the environment. -build --action_env=CC -build --action_env=CXX -build --action_env=LLVM_CONFIG -build --action_env=PATH - # Disable ICU linking for googleurl. build --@com_googlesource_googleurl//build_config:system_icu=0