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:
Jiuqiang Tang 2022-10-01 05:26:59 -07:00 committed by Copybara-Service
parent a3dc91fafe
commit 9568de0570

View File

@ -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 = ["."],
) )