File tree Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -91,8 +91,10 @@ def gplusplus_version
9191$CXXFLAGS += " -O3 -std=#{ $CXX_STANDARD} " #-fmax-errors=10 -save-temps
9292#$CXXFLAGS += " -static -O0 -g -std=#{$CXX_STANDARD} "
9393
94- CONFIG [ 'warnflags' ] . gsub! ( '-Wshorten-64-to-32' , '' ) # doesn't work except in Mac-patched gcc (4.2)
95- CONFIG [ 'warnflags' ] . gsub! ( '-Wdeclaration-after-statement' , '' )
96- CONFIG [ 'warnflags' ] . gsub! ( '-Wimplicit-function-declaration' , '' )
97-
94+ if CONFIG . has_key? ( 'warnflags' )
95+ CONFIG [ 'warnflags' ] . gsub! ( '-Wshorten-64-to-32' , '' ) # doesn't work except in Mac-patched gcc (4.2)
96+ CONFIG [ 'warnflags' ] . gsub! ( '-Wdeclaration-after-statement' , '' )
97+ CONFIG [ 'warnflags' ] . gsub! ( '-Wimplicit-function-declaration' , '' )
98+ end
99+
98100have_func ( "rb_array_const_ptr" , "ruby.h" )
You can’t perform that action at this time.
0 commit comments