summaryrefslogtreecommitdiffstats
path: root/test/scan-once.py
diff options
context:
space:
mode:
authorSteven Knight <knight@baldmt.com>2003-08-14 13:57:25 (GMT)
committerSteven Knight <knight@baldmt.com>2003-08-14 13:57:25 (GMT)
commit601839d06d9563854ce22a615d6670a7651cd858 (patch)
tree1e2a9cdb77277000ce8fe993a82d2437d8eabfc0 /test/scan-once.py
parent9509a572ba9977ab49d2fe19475a0f7034618ac6 (diff)
downloadSCons-601839d06d9563854ce22a615d6670a7651cd858.zip
SCons-601839d06d9563854ce22a615d6670a7651cd858.tar.gz
SCons-601839d06d9563854ce22a615d6670a7651cd858.tar.bz2
More portability fixes.
Diffstat (limited to 'test/scan-once.py')
-rw-r--r--test/scan-once.py12
1 files changed, 8 insertions, 4 deletions
diff --git a/test/scan-once.py b/test/scan-once.py
index ea4dbee..8a468b4 100644
--- a/test/scan-once.py
+++ b/test/scan-once.py
@@ -303,10 +303,14 @@ import re
for k in fromdict.keys():
if k != "ENV" and k != "SCANNERS" and k != "CFLAGS" and k != "CXXFLAGS" \
and not SCons.Util.is_Dict(fromdict[k]):
- # the next line fails in Cygwin because it tries to do env.subst on
- # $RMIC $RMICFLAGS -d ${TARGET.attributes.java_lookupdir} ...
- # when $TARGET is None, so $TARGET.attributes throws an exception
- todict[k] = env.subst(str(fromdict[k]))
+ # The next line can fail on some systems because it would try to
+ # do env.subst on:
+ # $RMIC $RMICFLAGS -d ${TARGET.attributes.java_lookupdir} ...
+ # When $TARGET is None, so $TARGET.attributes would throw an
+ # exception.
+ f = fromdict[k]
+ if SCons.Util.is_String(f) and string.find(f, "TARGET") == -1:
+ todict[k] = env.subst(f)
todict["CFLAGS"] = fromdict["CPPFLAGS"] + " " + \
string.join(map(lambda x: "-I" + x, env["CPPPATH"])) + " " + \
string.join(map(lambda x: "-L" + x, env["LIBPATH"]))