зеркало из https://github.com/github/ruby.git
transform_mjit_header.rb: fix up r65169
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@65173 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
Родитель
6458ae1bba
Коммит
a9025c8841
|
@ -228,11 +228,12 @@ if MJITHeader.windows? # transformation is broken with Windows headers for now
|
|||
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
|
||||
|
|
Загрузка…
Ссылка в новой задаче