File tree Expand file tree Collapse file tree 1 file changed +20
-3
lines changed
Expand file tree Collapse file tree 1 file changed +20
-3
lines changed Original file line number Diff line number Diff line change 3939# $CFLAGS='-fPIC -fno-strict-aliasing -g3 -ggdb -O2 -fPIC'
4040config_file = File . join ( File . dirname ( __FILE__ ) , 'config_options.rb' )
4141load config_file if File . exist? ( config_file )
42+ cflags = [ $CFLAGS]
43+ cflags . push ( *%w[
44+ -Werror=implicit-function-declaration
45+ -Werror=discarded-qualifiers
46+ -Werror=incompatible-pointer-types
47+ ] )
48+
49+ if RbConfig ::MAKEFILE_CONFIG [ 'CC' ] . include? ( 'clang' )
50+ cflags . push ( *%w[
51+ -Werror=incompatible-function-pointer-types
52+ ] )
53+ end
4254
43- $CFLAGS += ' -Werror=implicit-function-declaration -Werror=discarded-qualifiers'
4455
4556if ENV [ 'debase_debug' ]
46- $CFLAGS += ' -Wall -Werror'
47- $CFLAGS += ' -g3'
57+ cflags . push ( *%w[
58+ -Wall
59+ -Werror
60+ -g3
61+ ] )
4862end
4963
64+ $CFLAGS += ' ' + cflags . join ( ' ' )
65+
66+
5067dir_config ( "ruby" )
5168if !Debase ::RubyCoreSource . create_makefile_with_core ( hdrs , "debase_internals" )
5269 STDERR . print ( "Makefile creation failed\n " )
You can’t perform that action at this time.
0 commit comments