From 41f3e25635616c067b9ee272304e6f86ac8ee9db Mon Sep 17 00:00:00 2001 From: Yunlian Jiang Date: Thu, 6 Oct 2016 10:40:41 -0700 Subject: fix errors in gcc compiler wrapper. BUG=none Test: it runs without error. Change-Id: I5067e352facb416a04f0064ae68fd61ba29b1011 --- compiler_wrapper | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/compiler_wrapper b/compiler_wrapper index 15d50f473..54944a2cc 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: -- cgit v1.2.3