diff options
author | Yunlian Jiang <yunlian@google.com> | 2016-10-06 10:40:41 -0700 |
---|---|---|
committer | Yunlian Jiang <yunlian@google.com> | 2016-10-06 10:40:41 -0700 |
commit | 41f3e25635616c067b9ee272304e6f86ac8ee9db (patch) | |
tree | d42972bc9035aaf65cee252b5a7495f2990e93c4 /compiler_wrapper | |
parent | 73869497573424ded482a5d44c2644e0b8c7d946 (diff) | |
download | toolchain_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
Diffstat (limited to 'compiler_wrapper')
-rwxr-xr-x | compiler_wrapper | 4 |
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: |