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 --- BUILD.bazel | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) (limited to 'BUILD.bazel') diff --git a/BUILD.bazel b/BUILD.bazel index 79fb0ecd..03122a95 100644 --- a/BUILD.bazel +++ b/BUILD.bazel @@ -1,4 +1,3 @@ -# # Copyright 2020 The Abseil Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); @@ -23,3 +22,14 @@ exports_files([ "AUTHORS", "LICENSE", ]) + +# For building with clang-cl. +# https://bazel.build/configure/windows#clang +platform( + name = "x64_windows-clang-cl", + constraint_values = [ + "@platforms//cpu:x86_64", + "@platforms//os:windows", + "@bazel_tools//tools/cpp:clang-cl", + ], +) -- cgit v1.2.3