summaryrefslogtreecommitdiffstats
path: root/src/engine/SCons/Tool/lex.py
diff options
context:
space:
mode:
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 0dda128..2a936e5 100644
--- a/src/engine/SCons/Tool/lex.py
+++ b/src/engine/SCons/Tool/lex.py
@@ -47,5 +47,5 @@ def generate(env, platform):
env['LEXFLAGS'] = ''
env['LEXCOM'] = '$LEX $LEXFLAGS -t $SOURCES > $TARGET'
-def exists():
- return SCons.Util.WhereIs('lex')
+def exists(env):
+ return SCons.Util.Detect(['lex'], env)