ext/d_heap/extconf.rb in d_heap-0.5.0 vs ext/d_heap/extconf.rb in d_heap-0.6.0
- old
+ new
@@ -6,13 +6,12 @@
# $CFLAGS << " -D__D_HEAP_DEBUG" if /darwin/ =~ RUBY_PLATFORM
# $CFLAGS << " -debug inline-debug-info "
# $CFLAGS << " -g -ginline-points "
# $CFLAGS << " -fno-omit-frame-pointer "
-# CONFIG["debugflags"] << " -ggdb3 -gstatement-frontiers -ginline-points "
-CONFIG["optflags"] << " -O3 "
-CONFIG["optflags"] << " -fno-omit-frame-pointer "
-CONFIG["warnflags"] << " -Werror"
+if enable_config("debug")
+ CONFIG["warnflags"] << " -Werror -Wpedantic "
+end
have_func "rb_gc_mark_movable" # since ruby-2.7
check_sizeof("long")
check_sizeof("unsigned long long")