File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -7,9 +7,9 @@ fn main() {
77
88 let mut build = cc:: Build :: new ( ) ;
99 build
10- . flag ( "-std=c11" )
1110 . file ( "instrument-hooks/dist/core.c" )
1211 . include ( "instrument-hooks/includes" )
12+ . std ( "c11" )
1313 // We generated the C code from Zig, which contains some warnings
1414 // that can be safely ignored.
1515 . flag ( "-Wno-format" )
@@ -18,15 +18,11 @@ fn main() {
1818 . flag ( "-Wno-unused-const-variable" )
1919 . flag ( "-Wno-type-limits" )
2020 . flag ( "-Wno-uninitialized" )
21- // Ignore warnings when cross-compiling:
2221 . flag ( "-Wno-overflow" )
2322 . flag ( "-Wno-unused-function" )
2423 . flag ( "-Wno-constant-conversion" )
2524 . flag ( "-Wno-incompatible-pointer-types" )
26- // Disable warnings, as we will have lots of them
27- . warnings ( false )
28- . extra_warnings ( false )
29- . cargo_warnings ( false )
25+ . flag ( "-Wno-unterminated-string-initialization" )
3026 . opt_level ( 3 ) ;
3127
3228 let result = build. try_compile ( "instrument_hooks" ) ;
You can’t perform that action at this time.
0 commit comments