Переглянути джерело

Not used but add support for arm64 compilation. It now also always uses x64 tools to build the objs, instead of using the target arch as the host arch.

Martijn Laan 1 місяць тому
батько
коміт
db9db69dff

+ 4 - 3
Projects/Src/Compression.LZMA1SmallDecompressor/LzmaDecode/compile.bat

@@ -13,7 +13,8 @@ cd /d %~dp0
 
 if "%1"=="x86" goto archfound
 if "%1"=="x64" goto archfound
-echo Architecture parameter is missing or invalid. Must be "x86" or "x64".
+if "%1"=="arm64" goto archfound
+echo Architecture parameter is missing or invalid. Must be "x86" or "x64" or "arm64".
 goto failed2
 :archfound
 
@@ -35,8 +36,8 @@ rem -------------------------------------------------------------------------
 set __VSCMD_ARG_NO_LOGO=1
 set VSCMD_SKIP_SENDTELEMETRY=1
 
-echo - Calling VsDevCmd.bat -arch=%1
-call "%VSTOOLSROOT%\VsDevCmd.bat" -arch=%1
+echo - Calling VsDevCmd.bat -arch=%1 -host_arch=x64
+call "%VSTOOLSROOT%\VsDevCmd.bat" -arch=%1 -host_arch=x64
 if errorlevel 1 goto exit
 echo.
 

+ 4 - 3
Projects/Src/Compression.LZMADecompressor/Lzma2Decode/compile.bat

@@ -13,7 +13,8 @@ cd /d %~dp0
 
 if "%1"=="x86" goto archfound
 if "%1"=="x64" goto archfound
-echo Architecture parameter is missing or invalid. Must be "x86" or "x64".
+if "%1"=="arm64" goto archfound
+echo Architecture parameter is missing or invalid. Must be "x86" or "x64" or "arm64".
 goto failed2
 :archfound
 
@@ -35,8 +36,8 @@ rem -------------------------------------------------------------------------
 set __VSCMD_ARG_NO_LOGO=1
 set VSCMD_SKIP_SENDTELEMETRY=1
 
-echo - Calling VsDevCmd.bat -arch=%1
-call "%VSTOOLSROOT%\VsDevCmd.bat" -arch=%1
+echo - Calling VsDevCmd.bat -arch=%1 -host_arch=x64
+call "%VSTOOLSROOT%\VsDevCmd.bat" -arch=%1 -host_arch=x64
 if errorlevel 1 goto exit
 echo.
 

+ 4 - 3
Projects/Src/Compression.SevenZipDecoder/7zDecode/compile.bat

@@ -13,7 +13,8 @@ cd /d %~dp0
 
 if "%1"=="x86" goto archfound
 if "%1"=="x64" goto archfound
-echo Architecture parameter is missing or invalid. Must be "x86" or "x64".
+if "%1"=="arm64" goto archfound
+echo Architecture parameter is missing or invalid. Must be "x86" or "x64" or "arm64".
 goto failed2
 :archfound
 
@@ -35,8 +36,8 @@ rem -------------------------------------------------------------------------
 set __VSCMD_ARG_NO_LOGO=1
 set VSCMD_SKIP_SENDTELEMETRY=1
 
-echo - Calling VsDevCmd.bat -arch=%1
-call "%VSTOOLSROOT%\VsDevCmd.bat" -arch=%1
+echo - Calling VsDevCmd.bat -arch=%1 -host_arch=x64
+call "%VSTOOLSROOT%\VsDevCmd.bat" -arch=%1 -host_arch=x64
 if errorlevel 1 goto exit
 echo.