Preserve -Xarch_<arch> context when filtering args
This commit is contained in:
parent
fb296f8224
commit
0418865d56
@ -125,7 +125,18 @@ class Cmd
|
|||||||
enum = @args.each
|
enum = @args.each
|
||||||
|
|
||||||
loop do
|
loop do
|
||||||
args += refurbish_arg(enum.next, enum)
|
case arg = enum.next
|
||||||
|
when "-arch"
|
||||||
|
enum.next
|
||||||
|
when /^-Xarch_/
|
||||||
|
refurbished = refurbish_arg(enum.next, enum)
|
||||||
|
unless refurbished.empty?
|
||||||
|
args << arg
|
||||||
|
args += refurbished
|
||||||
|
end
|
||||||
|
else
|
||||||
|
args += refurbish_arg(arg, enum)
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
args
|
args
|
||||||
@ -135,8 +146,6 @@ class Cmd
|
|||||||
args = []
|
args = []
|
||||||
|
|
||||||
case arg
|
case arg
|
||||||
when '-arch', /^-Xarch_/
|
|
||||||
enum.next
|
|
||||||
when '-m32'
|
when '-m32'
|
||||||
# If ENV.m32 was set, we allow the "-m32" flag, but we don't add anything
|
# If ENV.m32 was set, we allow the "-m32" flag, but we don't add anything
|
||||||
args << '-m32' if cccfg? '3'
|
args << '-m32' if cccfg? '3'
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user