mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* lib/mkmf.rb: fixed the bug of handling COMMON_MACROS.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@11194 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
40fc1a8025
commit
03f19e27ed
2 changed files with 5 additions and 2 deletions
|
@ -1,3 +1,7 @@
|
||||||
|
Fri Oct 20 10:47:43 2006 NAKAMURA Usaku <usa@ruby-lang.org>
|
||||||
|
|
||||||
|
* lib/mkmf.rb: fixed the bug of handling COMMON_MACROS.
|
||||||
|
|
||||||
Fri Oct 20 08:42:38 2006 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
Fri Oct 20 08:42:38 2006 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
||||||
|
|
||||||
* common.mk (NULLCMD): dummy command.
|
* common.mk (NULLCMD): dummy command.
|
||||||
|
|
|
@ -1511,8 +1511,7 @@ EXPORT_PREFIX = config_string('EXPORT_PREFIX') {|s| s.strip}
|
||||||
hdr = []
|
hdr = []
|
||||||
config_string('COMMON_MACROS') do |s|
|
config_string('COMMON_MACROS') do |s|
|
||||||
Shellwords.shellwords(s).each do |w|
|
Shellwords.shellwords(s).each do |w|
|
||||||
/(.*?)(?:=(.*))/ =~ w
|
hdr << "#define " + w.split(/=/, 2).join(" ")
|
||||||
hdr << "#define #$1 #$2"
|
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
config_string('COMMON_HEADERS') do |s|
|
config_string('COMMON_HEADERS') do |s|
|
||||||
|
|
Loading…
Reference in a new issue