From: Christian Heimes Date: Tue, 19 Nov 2013 23:41:29 +0000 (+0100) Subject: Add workaround for VS 2010 nmake clean issue. VS 2010 doesn't set up PATH for nmake... X-Git-Tag: v3.4.0b1~167^2 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=2658dd7cab487ee6361dba5a69623612dd69f448;p=thirdparty%2FPython%2Fcpython.git Add workaround for VS 2010 nmake clean issue. VS 2010 doesn't set up PATH for nmake.exe correctly. --- diff --git a/Misc/NEWS b/Misc/NEWS index 4278e952f54f..28d80c20edd4 100644 --- a/Misc/NEWS +++ b/Misc/NEWS @@ -68,6 +68,9 @@ Tests Build ----- +- Add workaround for VS 2010 nmake clean issue. VS 2010 doesn't set up PATH + for nmake.exe correctly. + What's New in Python 3.3.3? =========================== diff --git a/PC/python3.mak b/PC/python3.mak index 2ec918582f1b..9cf180750d0d 100644 --- a/PC/python3.mak +++ b/PC/python3.mak @@ -5,6 +5,10 @@ $(OutDir)python33stub.lib: python33stub.def lib /def:python33stub.def /out:$(OutDir)python33stub.lib /MACHINE:$(MACHINE) clean: - del $(OutDir)python3.dll $(OutDir)python3.lib $(OutDir)python33stub.lib $(OutDir)python3.exp $(OutDir)python33stub.exp + IF EXIST $(OutDir)python3.dll del $(OutDir)python3.dll + IF EXIST $(OutDir)python3.lib del $(OutDir)python3.lib + IF EXIST $(OutDir)python33stub.lib del $(OutDir)python33stub.lib + IF EXIST $(OutDir)python3.exp del $(OutDir)python3.exp + IF EXIST $(OutDir)python33stub.exp del $(OutDir)python33stub.exp rebuild: clean $(OutDir)python3.dll diff --git a/PCbuild/python3dll.vcxproj b/PCbuild/python3dll.vcxproj index b3459b5fec14..bc8ff31ca223 100644 --- a/PCbuild/python3dll.vcxproj +++ b/PCbuild/python3dll.vcxproj @@ -99,7 +99,7 @@ nmake /f python3.mak MACHINE=x86 OutDir=$(OutDir) cd $(ProjectDir)\..\PC nmake /f python3.mak MACHINE=x86 OutDir=$(OutDir) rebuild cd $(ProjectDir)\..\PC -nmake /f python3.mak MACHINE=x86 OutDir=$(OutDir) clean +"$(VSInstallDir)\VC\bin\nmake.exe" /f python3.mak MACHINE=x86 OutDir=$(OutDir) clean $(OutDir)python3.dll $(NMakePreprocessorDefinitions) $(NMakeIncludeSearchPath) @@ -111,7 +111,7 @@ nmake /f python3.mak MACHINE=x64 OutDir=$(OutDir) cd $(ProjectDir)\..\PC nmake /f python3.mak MACHINE=x64 OutDir=$(OutDir) rebuild cd $(ProjectDir)\..\PC -nmake /f python3.mak MACHINE=x64 OutDir=$(OutDir) clean +"$(VSInstallDir)\VC\bin\nmake.exe" /f python3.mak MACHINE=x64 OutDir=$(OutDir) clean $(OutDir)python3.dll $(NMakePreprocessorDefinitions) $(NMakeIncludeSearchPath) @@ -123,7 +123,7 @@ nmake /f python3.mak MACHINE=x86 OutDir=$(OutDir) cd $(ProjectDir)\..\PC nmake /f python3.mak MACHINE=x86 OutDir=$(OutDir) rebuild cd $(ProjectDir)\..\PC -nmake /f python3.mak MACHINE=x86 OutDir=$(OutDir) clean +"$(VSInstallDir)\VC\bin\nmake.exe" /f python3.mak MACHINE=x86 OutDir=$(OutDir) clean $(OutDir)python3.dll $(NMakePreprocessorDefinitions) $(NMakeIncludeSearchPath) @@ -135,7 +135,7 @@ nmake /f python3.mak MACHINE=x64 OutDir=$(OutDir) cd $(ProjectDir)\..\PC nmake /f python3.mak MACHINE=x64 OutDir=$(OutDir) rebuild cd $(ProjectDir)\..\PC -nmake /f python3.mak MACHINE=x64 OutDir=$(OutDir) clean +"$(VSInstallDir)\VC\bin\nmake.exe" /f python3.mak MACHINE=x64 OutDir=$(OutDir) clean $(OutDir)python3.dll $(NMakePreprocessorDefinitions) $(NMakeIncludeSearchPath) @@ -147,7 +147,7 @@ nmake /f python3.mak MACHINE=x86 OutDir=$(OutDir) cd $(ProjectDir)\..\PC nmake /f python3.mak MACHINE=x86 OutDir=$(OutDir) rebuild cd $(ProjectDir)\..\PC -nmake /f python3.mak MACHINE=x86 OutDir=$(OutDir) clean +"$(VSInstallDir)\VC\bin\nmake.exe" /f python3.mak MACHINE=x86 OutDir=$(OutDir) clean $(OutDir)python3.dll $(NMakePreprocessorDefinitions) $(NMakeIncludeSearchPath) @@ -159,7 +159,7 @@ nmake /f python3.mak MACHINE=x64 OutDir=$(OutDir) cd $(ProjectDir)\..\PC nmake /f python3.mak MACHINE=x64 OutDir=$(OutDir) rebuild cd $(ProjectDir)\..\PC -nmake /f python3.mak MACHINE=x64 OutDir=$(OutDir) clean +"$(VSInstallDir)\VC\bin\nmake.exe" /f python3.mak MACHINE=x64 OutDir=$(OutDir) clean $(OutDir)python3.dll $(NMakePreprocessorDefinitions) $(NMakeIncludeSearchPath)