mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
mkconfig.rb: take CPU name from arch flag
This commit is contained in:
parent
cb18deee72
commit
ed9d761217
1 changed files with 8 additions and 0 deletions
|
@ -124,6 +124,14 @@ File.foreach "config.status" do |line|
|
||||||
if universal
|
if universal
|
||||||
platform = val.sub(/universal/, %q[#{arch && universal[/(?:\A|\s)#{Regexp.quote(arch)}=(\S+)/, 1] || RUBY_PLATFORM[/\A[^-]*/]}])
|
platform = val.sub(/universal/, %q[#{arch && universal[/(?:\A|\s)#{Regexp.quote(arch)}=(\S+)/, 1] || RUBY_PLATFORM[/\A[^-]*/]}])
|
||||||
end
|
end
|
||||||
|
when /^target_cpu$/
|
||||||
|
if universal
|
||||||
|
val = 'arch'
|
||||||
|
end
|
||||||
|
when /^target$/
|
||||||
|
val = '"$(target_cpu)-$(target_vendor)-$(target_os)"'
|
||||||
|
when /^host(?:_(?:os|vendor|cpu|alias))?$/
|
||||||
|
val = %["$(#{name.sub(/^host/, 'target')})"]
|
||||||
when /^includedir$/
|
when /^includedir$/
|
||||||
val = '"$(SDKROOT)"'+val if /darwin/ =~ arch
|
val = '"$(SDKROOT)"'+val if /darwin/ =~ arch
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue