Skip to content

Commit

Permalink
Fix licensing errors and add default condition for local_defines.
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 548995629
Change-Id: I0734ca5b64cf37401ec74a339a67f3044321aa7c
  • Loading branch information
buildbreaker2021 authored and copybara-github committed Jul 18, 2023
1 parent 5d8ef91 commit 1583313
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion cc/compiler/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
3 changes: 2 additions & 1 deletion tests/compiler_settings/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -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",
),
Expand Down

0 comments on commit 1583313

Please sign in to comment.