From c351a641de93f245f2570b88718b3309311f8b59 Mon Sep 17 00:00:00 2001 From: Jack Nagel Date: Sun, 20 Apr 2014 20:13:53 -0500 Subject: [PATCH] Use original value when building the flag --- Library/ENV/4.3/cc | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/Library/ENV/4.3/cc b/Library/ENV/4.3/cc index 9c1eeb23e8..f6e546c15f 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