Skip to content

Commit

Permalink
bazel: Fix windows build
Browse files Browse the repository at this point in the history
  • Loading branch information
Mizux committed Dec 11, 2024
1 parent fc5d64a commit c489538
Showing 1 changed file with 20 additions and 12 deletions.
32 changes: 20 additions & 12 deletions BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -13,18 +13,26 @@ exports_files(["LICENSE"])

INCLUDES = ["include"]

C99_FLAGS = [
"-Wall",
"-Wextra",
"-Wmissing-declarations",
"-Wmissing-prototypes",
"-Wno-implicit-fallthrough",
"-Wno-unused-function",
"-Wold-style-definition",
"-Wshadow",
"-Wsign-compare",
"-Wstrict-prototypes",
]
config_setting(
name = "on_windows",
constraint_values = ["@platforms//os:windows"],
)

C99_FLAGS = select({
"on_windows": [],
"//conditions:default": [
"-Wall",
"-Wextra",
"-Wmissing-declarations",
"-Wmissing-prototypes",
"-Wno-implicit-fallthrough",
"-Wno-unused-function",
"-Wold-style-definition",
"-Wshadow",
"-Wsign-compare",
"-Wstrict-prototypes",
],
})

cc_library(
name = "cpu_features_macros",
Expand Down

0 comments on commit c489538

Please sign in to comment.