mirror of
https://github.com/DaveGamble/cJSON
synced 2025-04-23 15:36:41 +00:00
removed incorrect copts
This commit is contained in:
parent
5268aa1bac
commit
4503ad11de
@ -14,11 +14,6 @@ DATA = [
|
|||||||
":test_inputs",
|
":test_inputs",
|
||||||
]
|
]
|
||||||
|
|
||||||
COPTS = select({
|
|
||||||
"@bazel_tools//src/conditions:windows": ["/std:c++17"],
|
|
||||||
"//conditions:default": ["-std=c++17"],
|
|
||||||
})
|
|
||||||
|
|
||||||
HDRS = glob(["*.h"])
|
HDRS = glob(["*.h"])
|
||||||
|
|
||||||
filegroup(
|
filegroup(
|
||||||
@ -37,7 +32,6 @@ test_suite(
|
|||||||
name = "unity_tests",
|
name = "unity_tests",
|
||||||
tests = test_set(
|
tests = test_set(
|
||||||
srcs = HDRS,
|
srcs = HDRS,
|
||||||
copts = COPTS,
|
|
||||||
data = DATA,
|
data = DATA,
|
||||||
test_files = glob(
|
test_files = glob(
|
||||||
["*.c"],
|
["*.c"],
|
||||||
@ -54,7 +48,7 @@ test_suite(
|
|||||||
cc_test(
|
cc_test(
|
||||||
name = "parse_examples",
|
name = "parse_examples",
|
||||||
srcs = HDRS + ["parse_examples.c"],
|
srcs = HDRS + ["parse_examples.c"],
|
||||||
copts = COPTS + ['-DTEST_DIR_PATH=\\"tests/inputs/\\"'],
|
copts = ['-DTEST_DIR_PATH=\\"tests/inputs/\\"'],
|
||||||
data = DATA,
|
data = DATA,
|
||||||
deps = DEPS,
|
deps = DEPS,
|
||||||
)
|
)
|
||||||
@ -62,7 +56,7 @@ cc_test(
|
|||||||
cc_test(
|
cc_test(
|
||||||
name = "json_patch_tests",
|
name = "json_patch_tests",
|
||||||
srcs = HDRS + ["json_patch_tests.c"],
|
srcs = HDRS + ["json_patch_tests.c"],
|
||||||
copts = COPTS + ['-DTEST_DIR_PATH=\\"tests/json-patch-tests/\\"'],
|
copts = ['-DTEST_DIR_PATH=\\"tests/json-patch-tests/\\"'],
|
||||||
data = DATA,
|
data = DATA,
|
||||||
deps = DEPS,
|
deps = DEPS,
|
||||||
)
|
)
|
||||||
|
Loading…
Reference in New Issue
Block a user