From cda4ca68f8e13be36674d95a2c2b003e938aa702 Mon Sep 17 00:00:00 2001 From: Paolo Tranquilli Date: Thu, 22 Feb 2024 11:08:50 +0100 Subject: [PATCH] Bazel: tweak `.bazelrc` --- .bazelrc | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/.bazelrc b/.bazelrc index 0580c4422e8..9cd23b70a3a 100644 --- a/.bazelrc +++ b/.bazelrc @@ -1,7 +1,9 @@ -common --enable_platform_specific_config --enable_bzlmod +common --enable_platform_specific_config +common --enable_bzlmod -# when using repo standalone, we want still to unlock loading the internal repository module -# actually using things from that module will obviously end up in an error +# when building from this repository in isolation, the internal repository will not be found at .. +# where `MODULE.bazel` looks for it. The following will get us past the module loading phase, so +# that we can build things that do not rely on that common --override_module=semmle_code=%workspace%/misc/bazel/semmle_code_stub build --repo_env=CC=clang --repo_env=CXX=clang++