Remove "-Wno-unused-function" and "$(STACK_FRAME_UNLIMITED)" to resolve the "invalid numeric argument '/Wno-unused-function'" error on Windows.
PiperOrigin-RevId: 478192521
This commit is contained in:
parent
a3dc91fafe
commit
9568de0570
14
third_party/stblib.BUILD
vendored
14
third_party/stblib.BUILD
vendored
|
@ -7,16 +7,19 @@ package(
|
||||||
|
|
||||||
licenses(["notice"]) # MIT license
|
licenses(["notice"]) # MIT license
|
||||||
|
|
||||||
exports_files(["LICENSE"])
|
COPTS = select({
|
||||||
|
"@platforms//os:windows": [],
|
||||||
|
"//conditions:default": [
|
||||||
|
"-Wno-unused-function",
|
||||||
|
"$(STACK_FRAME_UNLIMITED)",
|
||||||
|
],
|
||||||
|
})
|
||||||
|
|
||||||
cc_library(
|
cc_library(
|
||||||
name = "stb_image",
|
name = "stb_image",
|
||||||
srcs = ["stb_image.c"],
|
srcs = ["stb_image.c"],
|
||||||
hdrs = ["stb_image.h"],
|
hdrs = ["stb_image.h"],
|
||||||
copts = [
|
copts = COPTS,
|
||||||
"-Wno-unused-function",
|
|
||||||
"$(STACK_FRAME_UNLIMITED)",
|
|
||||||
],
|
|
||||||
includes = ["."],
|
includes = ["."],
|
||||||
)
|
)
|
||||||
|
|
||||||
|
@ -24,5 +27,6 @@ cc_library(
|
||||||
name = "stb_image_write",
|
name = "stb_image_write",
|
||||||
srcs = ["stb_image_write.c"],
|
srcs = ["stb_image_write.c"],
|
||||||
hdrs = ["stb_image_write.h"],
|
hdrs = ["stb_image_write.h"],
|
||||||
|
copts = COPTS,
|
||||||
includes = ["."],
|
includes = ["."],
|
||||||
)
|
)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user