summaryrefslogtreecommitdiffstats
path: root/src/engine/SCons/Builder.py
diff options
context:
space:
mode:
authorSteven Knight <knight@baldmt.com>2001-12-11 03:22:06 (GMT)
committerSteven Knight <knight@baldmt.com>2001-12-11 03:22:06 (GMT)
commit760ec2007ab98e6528dafba7d83e786d3e6fdda1 (patch)
tree17b556384203a53a84a525538a94f62167cc06eb /src/engine/SCons/Builder.py
parentc1b33d572499fb75730be8630db33e50e87f834d (diff)
downloadSCons-760ec2007ab98e6528dafba7d83e786d3e6fdda1.zip
SCons-760ec2007ab98e6528dafba7d83e786d3e6fdda1.tar.gz
SCons-760ec2007ab98e6528dafba7d83e786d3e6fdda1.tar.bz2
Add Scanner objects to source files when we first find them, not later when they're just going to be scanned.
Diffstat (limited to 'src/engine/SCons/Builder.py')
-rw-r--r--src/engine/SCons/Builder.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/engine/SCons/Builder.py b/src/engine/SCons/Builder.py
index 1525804..60aafb1 100644
--- a/src/engine/SCons/Builder.py
+++ b/src/engine/SCons/Builder.py
@@ -188,6 +188,9 @@ class BuilderBase:
for s in slist:
s.env_set(env, 1)
+ scanner = env.get_scanner(os.path.splitext(s.name)[1])
+ if scanner:
+ s.scanner_set(scanner.instance(env))
if len(tlist) == 1:
tlist = tlist[0]