diff options
author | José Fonseca <jfonseca@vmware.com> | 2012-06-11 19:38:07 +0100 |
---|---|---|
committer | José Fonseca <jfonseca@vmware.com> | 2012-06-11 19:38:07 +0100 |
commit | ea606ee7b49d130fdedd5a707e79fc9e37ba280c (patch) | |
tree | e059ab4f81bcb17647605b22b93f7577dc971d65 /scons/source_list.py | |
parent | f3cdcb839f534a3062864b06ec6689717ed102a1 (diff) | |
download | external_mesa3d-ea606ee7b49d130fdedd5a707e79fc9e37ba280c.zip external_mesa3d-ea606ee7b49d130fdedd5a707e79fc9e37ba280c.tar.gz external_mesa3d-ea606ee7b49d130fdedd5a707e79fc9e37ba280c.tar.bz2 |
scons: Fix scons build.
Diffstat (limited to 'scons/source_list.py')
-rw-r--r-- | scons/source_list.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/scons/source_list.py b/scons/source_list.py index 1d5166b..8111f43 100644 --- a/scons/source_list.py +++ b/scons/source_list.py @@ -63,7 +63,7 @@ class SourceListParser(object): self._error('not a variable definition') if op_pos > 0: - if line[op_pos - 1] in [':', '+']: + if line[op_pos - 1] in [':', '+', '?']: op_pos -= 1 else: self._error('only =, :=, and += are supported') @@ -77,6 +77,9 @@ class SourceListParser(object): self.symbol_table[sym] = val elif op == '+=': self.symbol_table[sym] += ' ' + val + elif op == '?=': + if sym not in self.symbol_table: + self.symbol_table[sym] = val def _parse_line(self, line): """Parse a source list line.""" |