summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorSteven Knight <knight@baldmt.com>2002-05-02 17:30:58 (GMT)
committerSteven Knight <knight@baldmt.com>2002-05-02 17:30:58 (GMT)
commit63aa6a05a151bd07fb0dcf18d6e591af76129dbd (patch)
treecbd2e3a0b03dfa46ca561d2b672519b145c46bdf /test
parenta956e0e9e0a25db79e5b035c81baaafbbc775ee0 (diff)
downloadSCons-63aa6a05a151bd07fb0dcf18d6e591af76129dbd.zip
SCons-63aa6a05a151bd07fb0dcf18d6e591af76129dbd.tar.gz
SCons-63aa6a05a151bd07fb0dcf18d6e591af76129dbd.tar.bz2
Don't rebuild WIN32 libraries when there's no import library created. (Charles Crain)
Diffstat (limited to 'test')
-rw-r--r--test/long-lines.py8
1 files changed, 2 insertions, 6 deletions
diff --git a/test/long-lines.py b/test/long-lines.py
index 521ed2c..a199a16 100644
--- a/test/long-lines.py
+++ b/test/long-lines.py
@@ -35,12 +35,10 @@ test = TestSCons.TestSCons()
if sys.platform == 'win32':
lib_=''
_dll = '.dll'
- _export = '__declspec(dllexport) '
linkflag = '/LIBPATH:' + test.workpath()
else:
lib_='lib'
_dll='.so'
- _export=''
linkflag = '-L' + test.workpath()
test.write('SConstruct', """
@@ -50,12 +48,10 @@ while len(linkflags) <= 8100:
env = Environment(LINKFLAGS = '$LINKXXX', LINKXXX = linkflags)
env.Program(target = 'foo', source = 'foo.c')
# Library(shared=1) uses $LINKFLAGS by default.
-env.Library(target = 'bar', source = 'foo.c', shared=1)
+env.Library(target = 'bar', source = 'foo.c', shared=1, no_import_lib=1)
""" % (linkflag, linkflag))
test.write('foo.c', r"""
-%svoid foo() { }
-
int
main(int argc, char *argv[])
{
@@ -63,7 +59,7 @@ main(int argc, char *argv[])
printf("foo.c\n");
exit (0);
}
-""" % _export)
+""")
test.run(arguments = '.')