summaryrefslogtreecommitdiffstats
path: root/test/MSVC
diff options
context:
space:
mode:
authorGary Oberbrunner <garyo@oberbrunner.com>2011-05-29 14:24:16 (GMT)
committerGary Oberbrunner <garyo@oberbrunner.com>2011-05-29 14:24:16 (GMT)
commitb97b65360984b8769ea266b5412ee6ca789f71ce (patch)
treeafcac503652235f9cd25bc625dcf15ad36b0f625 /test/MSVC
parent890a372b50ed96b936cbd78213807752986226f5 (diff)
downloadSCons-b97b65360984b8769ea266b5412ee6ca789f71ce.zip
SCons-b97b65360984b8769ea266b5412ee6ca789f71ce.tar.gz
SCons-b97b65360984b8769ea266b5412ee6ca789f71ce.tar.bz2
mSVC: fixed test problem in test/MSVC/embed-manifest.py by ensuring a manifest gets generated -- added /MANIFEST to LINKFLAGS and SHLINKFLAGS.
Diffstat (limited to 'test/MSVC')
-rw-r--r--test/MSVC/embed-manifest.py11
1 files changed, 5 insertions, 6 deletions
diff --git a/test/MSVC/embed-manifest.py b/test/MSVC/embed-manifest.py
index 9fd4460..92f36a2 100644
--- a/test/MSVC/embed-manifest.py
+++ b/test/MSVC/embed-manifest.py
@@ -45,6 +45,8 @@ if sys.platform != 'win32':
test.write('SConstruct', """\
env=Environment(WINDOWS_EMBED_MANIFEST=True)
env.Append(CCFLAGS = '/MD')
+env.Append(LINKFLAGS = '/MANIFEST')
+env.Append(SHLINKFLAGS = '/MANIFEST')
exe=env.Program('test.cpp')
dll=env.SharedLibrary('testdll.cpp')
env.Command('exe-extracted.manifest', exe,
@@ -69,15 +71,12 @@ main(int argc, char *argv)
test.write('testdll.cpp', """\
#include <stdio.h>
#include <stdlib.h>
-int i;
-int
+
+__declspec(dllexport) int
testdll(int argc, char *argv)
{
printf("testdll.cpp\\n");
- if (0)
- exit (0);
- else
- return 0;
+ return 0;
}
""")