diff options
author | Steven Knight <knight@baldmt.com> | 2003-04-10 05:35:38 (GMT) |
---|---|---|
committer | Steven Knight <knight@baldmt.com> | 2003-04-10 05:35:38 (GMT) |
commit | 2f8be7360679ad5e0260f4965ea5dd9506c7b033 (patch) | |
tree | 1379c046e82985011c5ab2d7604adf055e3140b9 /test/AS.py | |
parent | 81e5793a07783b29a13004f834b7579a0e1605bb (diff) | |
download | SCons-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.py | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -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 |