diff options
author | Googler <gnish@google.com> | 2023-07-18 07:27:26 -0700 |
---|---|---|
committer | Copybara-Service <copybara-worker@google.com> | 2023-07-18 07:27:57 -0700 |
commit | 1583313f410c9d54ae32d687703a5df3b2470c7d (patch) | |
tree | ea991a272d42a00956458a17e176a3be6de6e920 | |
parent | 5d8ef91731af93a79d599bebc68dd0396cff2e1a (diff) | |
download | bazelbuild-rules_cc-1583313f410c9d54ae32d687703a5df3b2470c7d.tar.gz |
Fix licensing errors and add default condition for `local_defines`.upstream/0.0.8
PiperOrigin-RevId: 548995629
Change-Id: I0734ca5b64cf37401ec74a339a67f3044321aa7c
-rw-r--r-- | cc/compiler/BUILD | 2 | ||||
-rw-r--r-- | 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", ), |