@@ -8,35 +8,6 @@ config_setting(
88 constraint_values = ["@platforms//os:windows" ],
99)
1010
11- # Instrument-hooks library with warning suppressions
12- cc_library (
13- name = "instrument_hooks" ,
14- srcs = ["instrument-hooks/dist/core.c" ],
15- hdrs = glob (["instrument-hooks/includes/*.h" ]),
16- includes = ["instrument-hooks/includes" ],
17- copts = select ({
18- ":windows" : [
19- "/wd4101" , # unreferenced local variable (equivalent to -Wno-unused-variable)
20- "/wd4189" , # local variable is initialized but not referenced (equivalent to -Wno-unused-but-set-variable)
21- "/wd4100" , # unreferenced formal parameter (equivalent to -Wno-unused-parameter)
22- "/wd4245" , # signed/unsigned mismatch
23- "/wd4132" , # const object should be initialized
24- "/wd4146" , # unary minus operator applied to unsigned type
25- ],
26- "//conditions:default" : [
27- "-Wno-maybe-uninitialized" ,
28- "-Wno-unused-variable" ,
29- "-Wno-unused-parameter" ,
30- "-Wno-unused-but-set-variable" ,
31- "-Wno-type-limits" ,
32- "-Wno-format" ,
33- "-Wno-format-security" ,
34- ],
35- }),
36- visibility = ["//visibility:public" ],
37- )
38-
39-
4011# Define the codspeed library
4112cc_library (
4213 name = "codspeed" ,
@@ -54,7 +25,7 @@ cc_library(
5425 ":walltime_mode" : ["CODSPEED_ENABLED" , "CODSPEED_WALLTIME" ],
5526 "//conditions:default" : [],
5627 }),
57- deps = [":instrument_hooks" ],
28+ deps = ["@instrument_hooks// :instrument_hooks" ],
5829 visibility = ["//visibility:public" ],
5930)
6031
0 commit comments