File tree Expand file tree Collapse file tree 2 files changed +11
-2
lines changed Expand file tree Collapse file tree 2 files changed +11
-2
lines changed Original file line number Diff line number Diff line change @@ -46,11 +46,17 @@ CMAKE_FLAGS = {
46
46
"//conditions:default" : {"CMAKE_BUILD_TYPE" : "Release" },
47
47
})
48
48
49
+ COPTS = [
50
+ "-mcx16" ,
51
+ "-Wno-error=unknown-pragmas" ,
52
+ ]
53
+
49
54
cmake (
50
55
name = "snmalloc" ,
51
56
cache_entries = CMAKE_FLAGS ,
52
57
generate_args = ["-G Ninja" ],
53
58
lib_source = ":srcs" ,
59
+ copts = COPTS ,
54
60
out_shared_libs = select ({
55
61
"@bazel_tools//src/conditions:darwin" : [
56
62
"libsnmallocshim-checks-memcpy-only.dylib" ,
72
78
cache_entries = CMAKE_FLAGS | {
73
79
"SNMALLOC_RUST_SUPPORT" : "ON" ,
74
80
},
81
+ copts = COPTS ,
75
82
generate_args = ["-G Ninja" ],
76
83
lib_source = ":srcs" ,
77
84
out_shared_libs = select ({
Original file line number Diff line number Diff line change @@ -7,9 +7,11 @@ cc_test(
7
7
name = "snmalloc_fuzzer" ,
8
8
srcs = ["snmalloc-fuzzer.cpp" ],
9
9
copts = [
10
- "-fexperimental-library" , # needed for std::execution::unseq,
11
10
"-fsanitize=address" ,
12
- ],
11
+ ] + select ({
12
+ "@bazel_tools//tools/cpp:clang-cl" : ["-fexperimental-library" ], # needed for std::execution::unseq,
13
+ "//conditions:default" : ["-mcx16" ],
14
+ }),
13
15
defines = [
14
16
"SNMALLOC_USE_WAIT_ON_ADDRESS=0" ,
15
17
"ADDRESS_SANITIZER" ,
You can’t perform that action at this time.
0 commit comments