From cb52a10520ce254549b12bfe68aa5b8a36d81113 Mon Sep 17 00:00:00 2001 From: Brad Parker Date: Tue, 1 Aug 2017 21:25:03 +0100 Subject: [PATCH] msvc2005: unset platform var for debug build too, remove bad paste in comment --- retroarch-build-msvc2005-x86.bat | 2 +- retroarch-debug-build-msvc2005-x86.bat | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/retroarch-build-msvc2005-x86.bat b/retroarch-build-msvc2005-x86.bat index 2ca77051..f22943b3 100644 --- a/retroarch-build-msvc2005-x86.bat +++ b/retroarch-build-msvc2005-x86.bat @@ -6,7 +6,7 @@ cd pkg\msvc rem I moved SetEnv BEFORE vcvarsall because I was getting the dreaded "\Microsoft was unexpected at this time" error and this somehow prevents it. rem Even after reading several hard-to-find "none of the other solutions online worked for me, but this one does" posts, still nothing worked for me. rem Then I got this: -rem error MSB6001: Invalid command line switch for "VCBuild.exe". Item has already been added. Key in dictionary: 'tmp' Key being added: 'tmp'cho "C:\Program Files\Microsoft Platform SDK\SetEnv.cmd" /2000 /RETAIL +rem error MSB6001: Invalid command line switch for "VCBuild.exe". Item has already been added. Key in dictionary: 'tmp' Key being added: 'tmp' rem The fix was to unset TMP and TEMP. set TMP= diff --git a/retroarch-debug-build-msvc2005-x86.bat b/retroarch-debug-build-msvc2005-x86.bat index 2a56b929..8ee00310 100644 --- a/retroarch-debug-build-msvc2005-x86.bat +++ b/retroarch-debug-build-msvc2005-x86.bat @@ -12,6 +12,9 @@ rem The fix was to unset TMP and TEMP. set TMP= set TEMP= +rem MSVC uses the platform variable which conflicts with our build system, so unset it temporarily +set platform= + call "C:\Program Files\Microsoft Platform SDK\SetEnv.cmd" /2000 /RETAIL echo "%ProgramFiles(x86)%\Microsoft Visual Studio 8\VC\vcvarsall.bat" x86