File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed
Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change 1414
1515# dir_config(extension_name)
1616
17- $CFLAGS << " -Wall -Wno-unknown-pragmas -std=c99"
17+ append_cflags ( [ " -Wall" , " -Wno-unknown-pragmas" , " -std=c99"] )
1818
1919if ENV . key? ( "RUBY_DEBUG" )
2020 $stderr. puts "Enabling debug mode..."
21-
22- $CFLAGS << " -DRUBY_DEBUG -O0"
21+
22+ append_cflags ( [ " -DRUBY_DEBUG" , " -O0"] )
2323end
2424
2525$srcs = [ "io/event/event.c" , "io/event/time.c" , "io/event/fiber.c" , "io/event/selector/selector.c" ]
3232if have_library ( "uring" ) and have_header ( "liburing.h" )
3333 # We might want to consider using this in the future:
3434 # have_func("io_uring_submit_and_wait_timeout", "liburing.h")
35-
35+
3636 $srcs << "io/event/selector/uring.c"
3737end
3838
5959
6060if ENV . key? ( "RUBY_SANITIZE" )
6161 $stderr. puts "Enabling sanitizers..."
62-
62+
6363 # Add address and undefined behaviour sanitizers:
64- $CFLAGS << " -fsanitize=address -fsanitize=undefined -fno-omit-frame-pointer"
64+ append_cflags ( [ " -fsanitize=address" , " -fsanitize=undefined" , " -fno-omit-frame-pointer"] )
6565 $LDFLAGS << " -fsanitize=address -fsanitize=undefined"
6666end
6767
You can’t perform that action at this time.
0 commit comments