Skip to content

Commit

Permalink
Fix precompiling CoreRoot overlay with crossgen for Windows arm/arm64 (
Browse files Browse the repository at this point in the history
  • Loading branch information
sergiy-k authored Apr 15, 2019
1 parent 9f9dcdd commit a49cc4a
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions build-test.cmd
Original file line number Diff line number Diff line change
Expand Up @@ -358,7 +358,7 @@ if exist "%CORE_ROOT%" rd /s /q "%CORE_ROOT%"
if exist "%CORE_ROOT_STAGE%" rd /s /q "%CORE_ROOT_STAGE%"
md "%CORE_ROOT%"
md "%CORE_ROOT_STAGE%"
xcopy "%__BinDir%" "%CORE_ROOT_STAGE%"
xcopy /s "%__BinDir%" "%CORE_ROOT_STAGE%"

REM =========================================================================================
REM ===
Expand Down Expand Up @@ -562,15 +562,19 @@ echo "%2" | findstr /b "xunit." >nul && (
exit /b 0
)

"%CORE_ROOT_STAGE%\crossgen.exe" /Platform_Assemblies_Paths "%CORE_ROOT%" /in "%1" /out "%CORE_ROOT%/temp.ni.dll" >nul 2>nul
set __CrossgenExe="%CORE_ROOT_STAGE%\crossgen.exe"
if /i "%__BuildArch%" == "arm" ( set __CrossgenExe="%CORE_ROOT_STAGE%\x86\crossgen.exe" )
if /i "%__BuildArch%" == "arm64" ( set __CrossgenExe="%CORE_ROOT_STAGE%\x64\crossgen.exe" )

"%__CrossgenExe%" /Platform_Assemblies_Paths "%CORE_ROOT%" /in "%1" /out "%CORE_ROOT%/temp.ni.dll" >nul 2>nul
set /a __exitCode = %errorlevel%
if "%__exitCode%" == "-2146230517" (
echo %2 is not a managed assembly.
exit /b 0
)

if %__exitCode% neq 0 (
echo Unable to precompile %2
echo Unable to precompile %2, Exit Code is %__exitCode%
exit /b 0
)

Expand Down

0 comments on commit a49cc4a

Please sign in to comment.