From 04af270f6d3a0e647946663764a5f869c104af8f Mon Sep 17 00:00:00 2001 From: Derek Mauro Date: Mon, 29 Jan 2024 15:04:23 -0800 Subject: Add empty WORKSPACE.bzlmod When bzlmod is enabled and WORKSPACE.bzlmod exists, the content of WORKSPACE is ignored. This prevents bzlmod builds from unintentionally depending on the WORKSPACE file. This exposed some small problems with our clang-cl configuration, which are also fixed in this change. PiperOrigin-RevId: 602511311 Change-Id: I0ba411edde2df0e17f4eeede4117ddb6934dd8f8 --- MODULE.bazel | 3 +++ 1 file changed, 3 insertions(+) (limited to 'MODULE.bazel') diff --git a/MODULE.bazel b/MODULE.bazel index 18190e8e..fc1534a7 100644 --- a/MODULE.bazel +++ b/MODULE.bazel @@ -20,6 +20,9 @@ module( compatibility_level = 1, ) +cc_configure = use_extension("@bazel_tools//tools/cpp:cc_configure.bzl", "cc_configure_extension") +use_repo(cc_configure, "local_config_cc") + # Only direct dependencies need to be listed below. # Please keep the versions in sync with the versions in the WORKSPACE file. -- cgit v1.2.3