mirror of
https://github.com/google/cpu_features.git
synced 2025-04-27 23:22:31 +02:00
bazel: Fix windows build
This commit is contained in:
parent
fc5d64a56d
commit
6ae01f1e85
27
BUILD.bazel
27
BUILD.bazel
@ -13,18 +13,21 @@ 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",
|
||||
]
|
||||
C99_FLAGS = select({
|
||||
"@platforms//os: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",
|
||||
|
Loading…
x
Reference in New Issue
Block a user