aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorJack Nagel2014-04-20 20:13:53 -0500
committerJack Nagel2014-04-20 20:13:53 -0500
commit8a46e25af2b4d6a0502c6a5e2feacf59a53314a7 (patch)
tree95a24eb484f66531d8325863f811b849dd41792c /Library
parent10ae2c8cb411a3ab9e5d0d183e115316bfcf4e65 (diff)
downloadhomebrew-8a46e25af2b4d6a0502c6a5e2feacf59a53314a7.tar.bz2
Use original value when building the flag
Diffstat (limited to 'Library')
-rwxr-xr-xLibrary/ENV/4.3/cc12
1 files changed, 6 insertions, 6 deletions
diff --git a/Library/ENV/4.3/cc b/Library/ENV/4.3/cc
index 9c1eeb23e..f6e546c15 100755
--- a/Library/ENV/4.3/cc
+++ b/Library/ENV/4.3/cc
@@ -147,13 +147,13 @@ class Cmd
args << "-Wl,#{arg}"
when /^-I(.+)?/
# Support both "-Ifoo" (one argument) and "-I foo" (two arguments)
- path = $1.chuzzle || whittler.next
- path = canonical_path(path)
- args << "-I#{path}" if keep?(path) and iset.add?(path)
+ val = $1.chuzzle || whittler.next
+ path = canonical_path(val)
+ args << "-I#{val}" if keep?(path) and iset.add?(path)
when /^-L(.+)?/
- path = $1.chuzzle || whittler.next
- path = canonical_path(path)
- args << "-L#{path}" if keep?(path) and lset.add?(path)
+ val = $1.chuzzle || whittler.next
+ path = canonical_path(val)
+ args << "-L#{val}" if keep?(path) and lset.add?(path)
else
args << arg
end