diff --git a/c/BUILD.bazel b/c/BUILD.bazel index d9c7e085bc..8608dd5f27 100644 --- a/c/BUILD.bazel +++ b/c/BUILD.bazel @@ -54,6 +54,7 @@ swift_cc_library( includes = [ "include", ], + nocopts = ["-Wstack-protector"], visibility = ["//visibility:public"], ) @@ -61,7 +62,6 @@ SBP_LEGACY_C_SOURCES = glob(["test/legacy/auto*.c"]) swift_cc_test( name = "sbp-legacy-test", - type = UNIT, srcs = [ "test/check_main_legacy.c", "test/check_edc.c", @@ -72,6 +72,7 @@ swift_cc_test( includes = [ "include/libsbp", ], + type = UNIT, deps = [ ":sbp", "@my-check//:check", @@ -82,7 +83,6 @@ SBP_V4_C_SOURCES = glob(["test/auto*.c"]) swift_cc_test( name = "sbp-v4-test", - type = UNIT, srcs = [ "test/check_main.c", "test/check_edc.c", @@ -91,6 +91,7 @@ swift_cc_test( "test/check_suites.h", ] + SBP_V4_C_SOURCES, includes = ["include/libsbp"], + type = UNIT, deps = [ ":sbp", "@my-check//:check", @@ -101,8 +102,8 @@ SBP_CPP_V4_C_SOURCES = glob(["test/cpp/auto*.cc"]) swift_cc_test( name = "sbp-cpp-v4-test", - type = UNIT, srcs = SBP_CPP_V4_C_SOURCES, + type = UNIT, deps = [ ":sbp", "@my-googletest//:gtest_main", @@ -111,7 +112,6 @@ swift_cc_test( swift_cc_test( name = "sbp-string-test", - type = UNIT, srcs = [ "test/string/test_double_null_terminated.cc", "test/string/test_multipart.cc", @@ -121,6 +121,7 @@ swift_cc_test( includes = [ "src/include", ], + type = UNIT, deps = [ ":sbp", "@my-googletest//:gtest_main", @@ -131,13 +132,13 @@ SBP_CPP_LEGACY_SOURCES = glob(["test/legacy/cpp/auto*.cc"]) swift_cc_test( name = "sbp-cpp-legacy-test", - type = UNIT, srcs = [ "test/legacy/cpp/test_sbp_stdio.cc", ] + SBP_CPP_LEGACY_SOURCES, data = [ "test/legacy/cpp/sbp_data/gnss_data.sbp", ], + type = UNIT, deps = [ ":sbp", "@my-googletest//:gtest_main",