diff --git a/cc/compiler/BUILD b/cc/compiler/BUILD index fade5801..41f00e43 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 bb5ed832..33c8206b 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", ),