From 1583313f410c9d54ae32d687703a5df3b2470c7d Mon Sep 17 00:00:00 2001 From: Googler Date: Tue, 18 Jul 2023 07:27:26 -0700 Subject: Fix licensing errors and add default condition for `local_defines`. PiperOrigin-RevId: 548995629 Change-Id: I0734ca5b64cf37401ec74a339a67f3044321aa7c --- cc/compiler/BUILD | 2 +- tests/compiler_settings/BUILD | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/cc/compiler/BUILD b/cc/compiler/BUILD index fade580..41f00e4 100644 --- a/cc/compiler/BUILD +++ b/cc/compiler/BUILD @@ -43,7 +43,7 @@ simplified by extracting the select expression into a Starlark constant. package(default_visibility = ["//visibility:public"]) -licenses(["notice"]) # Apache 2.0 +licenses(["notice"]) config_setting( name = "clang", diff --git a/tests/compiler_settings/BUILD b/tests/compiler_settings/BUILD index bb5ed83..33c8206 100644 --- a/tests/compiler_settings/BUILD +++ b/tests/compiler_settings/BUILD @@ -21,11 +21,12 @@ cc_binary( srcs = ["main.cc"], local_defines = select( { - "//cc/compiler:clang": ["COMPILER=clang"], "//cc/compiler:clang-cl": ["COMPILER=clang-cl"], + "//cc/compiler:clang": ["COMPILER=clang"], "//cc/compiler:gcc": ["COMPILER=gcc"], "//cc/compiler:mingw-gcc": ["COMPILER=mingw-gcc"], "//cc/compiler:msvc-cl": ["COMPILER=msvc-cl"], + "//conditions:default": [], }, no_match_error = "Compiler not detected by Bazel", ), -- cgit v1.2.3