aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJack Nagel2013-11-26 21:39:38 -0600
committerJack Nagel2013-11-26 21:42:10 -0600
commit45844074252f869b59b504faa5bda11a8cd6c454 (patch)
tree8a7ee848584091d545223c70c509ea5688c23792
parent85f424b270e32d43b1695727ab621c274bb5166a (diff)
downloadbrew-45844074252f869b59b504faa5bda11a8cd6c454.tar.bz2
Fix parsing of "-I foo" and "-L foo" under superenv
Fixes Homebrew/homebrew#24654.
-rwxr-xr-xLibrary/ENV/4.3/cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/Library/ENV/4.3/cc b/Library/ENV/4.3/cc
index fc3d4bf1e..ba9d69285 100755
--- a/Library/ENV/4.3/cc
+++ b/Library/ENV/4.3/cc
@@ -130,11 +130,11 @@ class Cmd
whittler.next
when '-dylib'
args << "-Wl,#{arg}"
- when /^-I(.+)/
- # it is okay to add a space after the -I; so let's support it
+ when /^-I(.+)?/
+ # Support both "-Ifoo" (one argument) and "-I foo" (two arguments)
path = $1.chuzzle || whittler.next
args << "-I#{path}" if iset.add?(path.cleanpath)
- when /^-L(.+)/
+ when /^-L(.+)?/
path = $1.chuzzle || whittler.next
doit = case path.cleanpath
when %r{^#{brewfix}}