[pypy-svn] r75394 - pypy/trunk/pypy/translator/platform

afa at codespeak.net afa at codespeak.net
Mon Jun 14 18:55:27 CEST 2010


Author: afa
Date: Mon Jun 14 18:55:26 2010
New Revision: 75394

Modified:
   pypy/trunk/pypy/translator/platform/windows.py
Log:
add and embed a manifest file in the main program,
it was missing from the Makefile when --shared is used.


Modified: pypy/trunk/pypy/translator/platform/windows.py
==============================================================================
--- pypy/trunk/pypy/translator/platform/windows.py	(original)
+++ pypy/trunk/pypy/translator/platform/windows.py	Mon Jun 14 18:55:26 2010
@@ -287,7 +287,9 @@
                    'int main(int argc, char* argv[]) '
                    '{ return $(PYPY_MAIN_FUNCTION)(argc, argv); } > $@')
             m.rule('$(DEFAULT_TARGET)', ['$(TARGET)', 'main.obj'],
-                   '$(CC_LINK) /nologo main.obj $(SHARED_IMPORT_LIB) /out:$@')
+                   ['$(CC_LINK) /nologo main.obj $(SHARED_IMPORT_LIB) /out:$@ /MANIFESTFILE:$*.manifest',
+                    'mt.exe -nologo -manifest $*.manifest -outputresource:$@;1',
+                    ])
 
         return m
 



More information about the Pypy-commit mailing list