Commits

Gary Oberbrunner  committed 8e9abbd

mSVC: fixed test problem in test/MSVC/embed-manifest.py by ensuring a manifest gets generated -- added /MANIFEST to LINKFLAGS and SHLINKFLAGS.

  • Participants
  • Parent commits d1916e5

Comments (0)

Files changed (1)

File test/MSVC/embed-manifest.py

 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,
 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;
 }
 """)