aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorYunlian Jiang <yunlian@google.com>2016-10-06 17:40:41 (GMT)
committerYunlian Jiang <yunlian@google.com>2016-10-06 17:40:41 (GMT)
commit41f3e25635616c067b9ee272304e6f86ac8ee9db (patch)
treed42972bc9035aaf65cee252b5a7495f2990e93c4
parent73869497573424ded482a5d44c2644e0b8c7d946 (diff)
downloadtoolchain_gcc-41f3e25635616c067b9ee272304e6f86ac8ee9db.zip
toolchain_gcc-41f3e25635616c067b9ee272304e6f86ac8ee9db.tar.gz
toolchain_gcc-41f3e25635616c067b9ee272304e6f86ac8ee9db.tar.bz2
fix errors in gcc compiler wrapper.
BUG=none Test: it runs without error. Change-Id: I5067e352facb416a04f0064ae68fd61ba29b1011
-rwxr-xr-xcompiler_wrapper4
1 files changed, 2 insertions, 2 deletions
diff --git a/compiler_wrapper b/compiler_wrapper
index 15d50f4..54944a2 100755
--- a/compiler_wrapper
+++ b/compiler_wrapper
@@ -29,7 +29,7 @@ class CompilerWrapper():
def process_gomacc_command(self):
"""Return the gomacc command if '--gomacc-path' is set."""
- gomacc = self.custom_flag['--gomacc-path']
+ gomacc = self.custom_flags['--gomacc-path']
if gomacc and os.path.isfile(gomacc):
self.argv0 = gomacc
self.execargs += [gomacc]
@@ -38,7 +38,7 @@ class CompilerWrapper():
i = 0
args = []
while i < len(self.args):
- if self.args[i] in self.custom_flag:
+ if self.args[i] in self.custom_flags:
self.custom_flags[self.args[i]] = self.args[i + 1]
i = i + 2
else: