Fix parsing of "-I foo" and "-L foo" under superenv
Fixes Homebrew/homebrew#24654.
This commit is contained in:
parent
85f424b270
commit
4584407425
@ -130,11 +130,11 @@ class Cmd
|
|||||||
whittler.next
|
whittler.next
|
||||||
when '-dylib'
|
when '-dylib'
|
||||||
args << "-Wl,#{arg}"
|
args << "-Wl,#{arg}"
|
||||||
when /^-I(.+)/
|
when /^-I(.+)?/
|
||||||
# it is okay to add a space after the -I; so let's support it
|
# Support both "-Ifoo" (one argument) and "-I foo" (two arguments)
|
||||||
path = $1.chuzzle || whittler.next
|
path = $1.chuzzle || whittler.next
|
||||||
args << "-I#{path}" if iset.add?(path.cleanpath)
|
args << "-I#{path}" if iset.add?(path.cleanpath)
|
||||||
when /^-L(.+)/
|
when /^-L(.+)?/
|
||||||
path = $1.chuzzle || whittler.next
|
path = $1.chuzzle || whittler.next
|
||||||
doit = case path.cleanpath
|
doit = case path.cleanpath
|
||||||
when %r{^#{brewfix}}
|
when %r{^#{brewfix}}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user