summaryrefslogtreecommitdiffstats
path: root/test/AS.py
diff options
context:
space:
mode:
authorSteven Knight <knight@baldmt.com>2003-04-10 05:35:38 (GMT)
committerSteven Knight <knight@baldmt.com>2003-04-10 05:35:38 (GMT)
commit2f8be7360679ad5e0260f4965ea5dd9506c7b033 (patch)
tree1379c046e82985011c5ab2d7604adf055e3140b9 /test/AS.py
parent81e5793a07783b29a13004f834b7579a0e1605bb (diff)
downloadSCons-2f8be7360679ad5e0260f4965ea5dd9506c7b033.zip
SCons-2f8be7360679ad5e0260f4965ea5dd9506c7b033.tar.gz
SCons-2f8be7360679ad5e0260f4965ea5dd9506c7b033.tar.bz2
Implement Tool refactoring. (Chad Austin + Steve Leblanc)
Diffstat (limited to 'test/AS.py')
-rw-r--r--test/AS.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/test/AS.py b/test/AS.py
index 932883d..22eb17c 100644
--- a/test/AS.py
+++ b/test/AS.py
@@ -112,6 +112,7 @@ sys.exit(0)
test.write('SConstruct', """
env = Environment(LINK = r'%s mylink.py',
+ LINKFLAGS = [],
AS = r'%s myas.py',
CC = r'%s myas.py')
env.Program(target = 'test1', source = 'test1.s')
@@ -168,8 +169,9 @@ test.fail_test(test.read('test6' + _exe) != "This is a .SPP file.\n")
as = test.detect('AS', 'as')
+x86 = (sys.platform == 'win32' or string.find(sys.platform, 'linux') != -1)
-if as:
+if as and x86:
test.write("wrapper.py",
"""import os
@@ -248,7 +250,7 @@ main(int argc, char *argv[])
ml = test.where_is('ml')
-if ml:
+if ml and sys.platform == 'win32':
test.write("wrapper.py",
"""import os