summaryrefslogtreecommitdiffstats
path: root/src/engine/SCons/Tool/lex.py
diff options
context:
space:
mode:
authorSteven Knight <knight@baldmt.com>2003-06-15 01:45:15 (GMT)
committerSteven Knight <knight@baldmt.com>2003-06-15 01:45:15 (GMT)
commitd0acf56c9c4ee38ab3c709eb173a42bf3d6d4349 (patch)
tree43ce58bd9f5dc689acb78a78f83b79c601eb3cfd /src/engine/SCons/Tool/lex.py
parent7414ccf0c3ddcdde49574a3a0e6f36c96908c549 (diff)
downloadSCons-d0acf56c9c4ee38ab3c709eb173a42bf3d6d4349.zip
SCons-d0acf56c9c4ee38ab3c709eb173a42bf3d6d4349.tar.gz
SCons-d0acf56c9c4ee38ab3c709eb173a42bf3d6d4349.tar.bz2
Portability fixes for non-GNU lex and yacc. (Chad Austin)
Diffstat (limited to 'src/engine/SCons/Tool/lex.py')
-rw-r--r--src/engine/SCons/Tool/lex.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/engine/SCons/Tool/lex.py b/src/engine/SCons/Tool/lex.py
index 95a5315..9ef2167 100644
--- a/src/engine/SCons/Tool/lex.py
+++ b/src/engine/SCons/Tool/lex.py
@@ -43,9 +43,9 @@ def generate(env):
c_file.add_action('.l', '$LEXCOM')
cxx_file.add_action('.ll', '$LEXCOM')
- env['LEX'] = 'lex'
+ env['LEX'] = env.Detect('flex') or 'lex'
env['LEXFLAGS'] = ''
env['LEXCOM'] = '$LEX $LEXFLAGS -t $SOURCES > $TARGET'
def exists(env):
- return env.Detect('lex')
+ return env.Detect(['flex', 'lex'])