@@ -63,28 +63,25 @@ task :gitlab_config do
6363 configs = [ ]
6464 [ true , false ] . each do |mode_32 |
6565 [ '' , 'MRB_USE_FLOAT' ] . each do |float_conf |
66- [ '' , 'MRB_INT16' , 'MRB_INT64' ] . each do |int_conf |
67- [ '' , 'MRB_NAN_BOXING' , 'MRB_WORD_BOXING' ] . each do |boxing_conf |
68- [ '' , 'MRB_UTF8_STRING' ] . each do |utf8_conf |
69- next if ( float_conf == 'MRB_USE_FLOAT' ) && ( boxing_conf == 'MRB_NAN_BOXING' )
70- next if ( int_conf == 'MRB_INT64' ) && ( boxing_conf == 'MRB_NAN_BOXING' )
71- next if ( int_conf == 'MRB_INT16' ) && ( boxing_conf == 'MRB_WORD_BOXING' )
72- next if ( int_conf == 'MRB_INT64' ) && ( boxing_conf == 'MRB_WORD_BOXING' ) && mode_32
73- env = [ float_conf , int_conf , boxing_conf , utf8_conf ] . map do |conf |
74- conf == '' ? nil : "-D#{ conf } =1"
75- end . compact . join ( ' ' )
76- bit = mode_32 ? '-m32 ' : ''
77- _info = ''
78- _info += mode_32 ? '32bit ' : '64bit '
79- _info += float_conf [ 'USE' ] ? 'float ' : ''
80- _info += int_conf [ '16' ] ? 'int16 ' : ''
81- _info += int_conf [ '64' ] ? 'int64 ' : ''
82- _info += boxing_conf [ 'NAN' ] ? 'nan ' : ''
83- _info += boxing_conf [ 'WORD' ] ? 'word ' : ''
84- _info += utf8_conf [ 'UTF8' ] ? 'utf8 ' : ''
85- _info = _info . gsub ( / +/ , ' ' ) . strip . tr ( ' ' , '_' )
86- configs << { '_info' => _info , 'CFLAGS' => "#{ bit } #{ env } " , 'LDFLAGS' => bit . strip . to_s }
87- end
66+ [ '' , 'MRB_NAN_BOXING' , 'MRB_WORD_BOXING' ] . each do |boxing_conf |
67+ [ '' , 'MRB_UTF8_STRING' ] . each do |utf8_conf |
68+ next if ( float_conf == 'MRB_USE_FLOAT' ) && ( boxing_conf == 'MRB_NAN_BOXING' )
69+ next if ( int_conf == 'MRB_INT64' ) && ( boxing_conf == 'MRB_NAN_BOXING' )
70+ next if ( int_conf == 'MRB_INT64' ) && ( boxing_conf == 'MRB_WORD_BOXING' ) && mode_32
71+ env = [ float_conf , int_conf , boxing_conf , utf8_conf ] . map do |conf |
72+ conf == '' ? nil : "-D#{ conf } =1"
73+ end . compact . join ( ' ' )
74+ bit = mode_32 ? '-m32 ' : ''
75+ _info = ''
76+ _info += mode_32 ? '32bit ' : '64bit '
77+ _info += float_conf [ 'USE' ] ? 'float ' : ''
78+ _info += int_conf [ '16' ] ? 'int16 ' : ''
79+ _info += int_conf [ '64' ] ? 'int64 ' : ''
80+ _info += boxing_conf [ 'NAN' ] ? 'nan ' : ''
81+ _info += boxing_conf [ 'WORD' ] ? 'word ' : ''
82+ _info += utf8_conf [ 'UTF8' ] ? 'utf8 ' : ''
83+ _info = _info . gsub ( / +/ , ' ' ) . strip . tr ( ' ' , '_' )
84+ configs << { '_info' => _info , 'CFLAGS' => "#{ bit } #{ env } " , 'LDFLAGS' => bit . strip . to_s }
8885 end
8986 end
9087 end
0 commit comments