From 6f652931311d23fd91248ab306ca9c5c00b63ecf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Julian=20L=C3=B6hr?= Date: Mon, 27 Jun 2016 12:32:58 +0200 Subject: [PATCH] Fix SCMRevGen for 64-bit MSBuild CScript must be run as 64-bit regardless of the MSBuild bitness. Otherwise it won't find 64-bit Git installations. However the "Sysnative" redirector is not available for 64-bit processes. So a fix is needed when 64-bit MSBuild is run. The "ProgramFiles(x86)" Macro is only set for 64-bit, otherwise it is empty. Therefore it can be used as condition to check whether the current MSBuild process is 32 or 64-bit. --- Source/Core/Common/SCMRevGen.vcxproj | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/Source/Core/Common/SCMRevGen.vcxproj b/Source/Core/Common/SCMRevGen.vcxproj index 9b95761597..3b5e65be1b 100644 --- a/Source/Core/Common/SCMRevGen.vcxproj +++ b/Source/Core/Common/SCMRevGen.vcxproj @@ -26,7 +26,10 @@ - + + %windir%\System32\cscript + %windir%\Sysnative\cscript +