diff options
author | Steven Knight <knight@baldmt.com> | 2001-12-11 03:22:06 (GMT) |
---|---|---|
committer | Steven Knight <knight@baldmt.com> | 2001-12-11 03:22:06 (GMT) |
commit | 760ec2007ab98e6528dafba7d83e786d3e6fdda1 (patch) | |
tree | 17b556384203a53a84a525538a94f62167cc06eb /src/engine/SCons/Builder.py | |
parent | c1b33d572499fb75730be8630db33e50e87f834d (diff) | |
download | SCons-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.py | 3 |
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] |