diff options
| author | Jack Nagel | 2013-11-26 21:39:38 -0600 |
|---|---|---|
| committer | Jack Nagel | 2013-11-26 21:42:10 -0600 |
| commit | b540437d66f870c4418c517e1a478bf0d0664bdf (patch) | |
| tree | 5b13747290d3d10ebccbb740ebcf3d93b69bf58e /Library | |
| parent | 1b37e8d86120f1cca3c78a8efaef84d851a4c63f (diff) | |
| download | homebrew-b540437d66f870c4418c517e1a478bf0d0664bdf.tar.bz2 | |
Fix parsing of "-I foo" and "-L foo" under superenv
Fixes #24654.
Diffstat (limited to 'Library')
| -rwxr-xr-x | Library/ENV/4.3/cc | 6 |
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}} |
