mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* lib/mkmf.rb (cpp_command): remove multiple -arch flags since cpp
cannot work. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33669 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
452bf3b9c9
commit
7c7514b206
2 changed files with 8 additions and 0 deletions
|
@ -1,3 +1,8 @@
|
|||
Tue Nov 8 17:30:50 2011 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
||||
|
||||
* lib/mkmf.rb (cpp_command): remove multiple -arch flags since cpp
|
||||
cannot work.
|
||||
|
||||
Tue Nov 8 14:50:55 2011 NAKAMURA Usaku <usa@ruby-lang.org>
|
||||
|
||||
* io.c (io_fwrite): call rb_w32_write_console() only if FMODE_TTY is
|
||||
|
|
|
@ -418,6 +418,9 @@ def cpp_command(outfile, opt="")
|
|||
conf = RbConfig::CONFIG.merge('hdrdir' => $hdrdir.quote, 'srcdir' => $srcdir.quote,
|
||||
'arch_hdrdir' => $arch_hdrdir.quote,
|
||||
'top_srcdir' => $top_srcdir.quote)
|
||||
if $universal and (arch_flag = conf['ARCH_FLAG']) and !arch_flag.empty?
|
||||
conf['ARCH_FLAG'] = arch_flag.gsub(/(?:\G|\s)-arch\s+\S+/, '')
|
||||
end
|
||||
RbConfig::expand("$(CPP) #$INCFLAGS #$CPPFLAGS #$CFLAGS #{opt} #{CONFTEST_C} #{outfile}",
|
||||
conf)
|
||||
end
|
||||
|
|
Loading…
Add table
Reference in a new issue