ruby-changes:52959
From: nobu <ko1@a...>
Date: Fri, 19 Oct 2018 22:11:38 +0900 (JST)
Subject: [ruby-changes:52959] nobu:r65173 (trunk): transform_mjit_header.rb: fix up r65169
nobu 2018-10-19 22:11:33 +0900 (Fri, 19 Oct 2018) New Revision: 65173 https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=65173 Log: transform_mjit_header.rb: fix up r65169 Modified files: trunk/tool/transform_mjit_header.rb Index: tool/transform_mjit_header.rb =================================================================== --- tool/transform_mjit_header.rb (revision 65172) +++ tool/transform_mjit_header.rb (revision 65173) @@ -228,11 +228,12 @@ if MJITHeader.windows? # transformation https://github.com/ruby/ruby/blob/trunk/tool/transform_mjit_header.rb#L228 end macro, code = MJITHeader.separate_macro_and_code(code) # note: this does not work on MinGW -code_to_check = "#{<<header}#{code}#{macro}" # macro should not affect code again +code = <<header + code #ifdef __GNUC__ # pragma GCC system_header #endif header +code_to_check = "#{code}#{macro}" # macro should not affect code again if MJITHeader.conflicting_types?(code_to_check, cc, cflags) cflags = "#{cflags} -std=c99" # For AIX gcc -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/