Use original value when building the flag
This commit is contained in:
parent
7498cfff99
commit
c351a641de
@ -147,13 +147,13 @@ class Cmd
|
|||||||
args << "-Wl,#{arg}"
|
args << "-Wl,#{arg}"
|
||||||
when /^-I(.+)?/
|
when /^-I(.+)?/
|
||||||
# Support both "-Ifoo" (one argument) and "-I foo" (two arguments)
|
# Support both "-Ifoo" (one argument) and "-I foo" (two arguments)
|
||||||
path = $1.chuzzle || whittler.next
|
val = $1.chuzzle || whittler.next
|
||||||
path = canonical_path(path)
|
path = canonical_path(val)
|
||||||
args << "-I#{path}" if keep?(path) and iset.add?(path)
|
args << "-I#{val}" if keep?(path) and iset.add?(path)
|
||||||
when /^-L(.+)?/
|
when /^-L(.+)?/
|
||||||
path = $1.chuzzle || whittler.next
|
val = $1.chuzzle || whittler.next
|
||||||
path = canonical_path(path)
|
path = canonical_path(val)
|
||||||
args << "-L#{path}" if keep?(path) and lset.add?(path)
|
args << "-L#{val}" if keep?(path) and lset.add?(path)
|
||||||
else
|
else
|
||||||
args << arg
|
args << arg
|
||||||
end
|
end
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user