summaryrefslogtreecommitdiff
path: root/scons
diff options
context:
space:
mode:
authorJosé Fonseca <jfonseca@vmware.com>2012-06-11 19:38:07 +0100
committerJosé Fonseca <jfonseca@vmware.com>2012-06-11 19:38:07 +0100
commitea606ee7b49d130fdedd5a707e79fc9e37ba280c (patch)
treee059ab4f81bcb17647605b22b93f7577dc971d65 /scons
parentf3cdcb839f534a3062864b06ec6689717ed102a1 (diff)
scons: Fix scons build.
Diffstat (limited to 'scons')
-rw-r--r--scons/source_list.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/scons/source_list.py b/scons/source_list.py
index 1d5166ba1f..8111f43184 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."""