Skip to content
This repository was archived by the owner on Jan 23, 2023. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion tests/runtest.sh
Original file line number Diff line number Diff line change
Expand Up @@ -407,7 +407,7 @@ function precompile_overlay_assemblies {
$overlayDir/crossgen /Platform_Assemblies_Paths $overlayDir $filename 1> $filename.stdout 2>$filename.stderr
local exitCode=$?
if [[ $exitCode != 0 ]]; then
if grep -q -e '(COR_E_ASSEMBLYEXPECTED)' $filename.stderr; then
if grep -q -e '0x80131018' $filename.stderr; then
printf "\n\t$filename is not a managed assembly.\n\n"
else
echo Unable to precompile $filename.
Expand Down
1 change: 1 addition & 0 deletions tests/skipCrossGenFiles.arm.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
mscorlib.dll
System.Runtime.WindowsRuntime.UI.Xaml.dll
System.Private.CoreLib.dll
1 change: 1 addition & 0 deletions tests/skipCrossGenFiles.arm64.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,4 @@ Microsoft.CodeAnalysis.VisualBasic.dll
System.Net.NameResolution.dll
System.Net.Sockets.dll
System.Net.Primitives.dll
System.Private.CoreLib.dll
1 change: 1 addition & 0 deletions tests/skipCrossGenFiles.x64.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
mscorlib.dll
System.Runtime.WindowsRuntime.UI.Xaml.dll
System.Private.CoreLib.dll
1 change: 1 addition & 0 deletions tests/skipCrossGenFiles.x86.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
mscorlib.dll
System.Runtime.WindowsRuntime.UI.Xaml.dll
System.Private.CoreLib.dll
22 changes: 14 additions & 8 deletions tests/src/CLRTest.CrossGen.targets
Original file line number Diff line number Diff line change
Expand Up @@ -40,11 +40,14 @@ WARNING: When setting properties based on their current state (for example:
if [ ! -z ${RunCrossGen+x} ]%3B then
export COMPlus_ZapRequire=$(ZapRequire)
export COMPlus_ZapRequireList=$(MSBuildProjectName)
if [ ! -f $(MSBuildProjectName).ni.exe ]%3B then
if [ ! -f $(MSBuildProjectName).org ]%3B then
TakeLock
if [ ! -f $(MSBuildProjectName).ni.exe ]%3B then
echo $_DebuggerFullPath "$CORE_ROOT/crossgen" /Platform_Assemblies_Paths $CORE_ROOT%3A$PWD $(MSBuildProjectName).exe
$_DebuggerFullPath "$CORE_ROOT/crossgen" /Platform_Assemblies_Paths $CORE_ROOT%3A$PWD $(MSBuildProjectName).exe
if [ ! -f $(MSBuildProjectName).org ]%3B then
mkdir IL
cp $(MSBuildProjectName).exe IL/$(MSBuildProjectName).exe
mv $(MSBuildProjectName).exe $(MSBuildProjectName).org
echo $_DebuggerFullPath "$CORE_ROOT/crossgen" /Platform_Assemblies_Paths $CORE_ROOT%3A$PWD/IL%3A$PWD /in $(MSBuildProjectName).org /out $(MSBuildProjectName).exe
$_DebuggerFullPath "$CORE_ROOT/crossgen" /Platform_Assemblies_Paths $CORE_ROOT%3A$PWD/IL%3A$PWD /in $(MSBuildProjectName).org /out $(MSBuildProjectName).exe
__cgExitCode=$?
if [ $__cgExitCode -ne 0 ]
then
Expand Down Expand Up @@ -73,12 +76,15 @@ REM CrossGen Script
if defined RunCrossGen (
set COMPlus_ZapRequire=$(ZapRequire)
set COMPlus_ZapRequireList=$(MSBuildProjectName)
if not exist "$(MSBuildProjectName).ni.exe" (
if not exist "$(MSBuildProjectName).org" (
call :TakeLock
set CrossGenStatus=0
if not exist "$(MSBuildProjectName).ni.exe" (
echo "%_DebuggerFullPath% %CORE_ROOT%\crossgen.exe" /Platform_Assemblies_Paths %CORE_ROOT%%3B%25cd%25 $(MSBuildProjectName).exe
%_DebuggerFullPath% "%CORE_ROOT%\crossgen.exe" /Platform_Assemblies_Paths %CORE_ROOT%%3B%25cd%25 $(MSBuildProjectName).exe
if not exist "$(MSBuildProjectName).org" (
mkdir IL
copy $(MSBuildProjectName).exe IL\$(MSBuildProjectName).exe
ren $(MSBuildProjectName).exe $(MSBuildProjectName).org
echo "%_DebuggerFullPath% %CORE_ROOT%\crossgen.exe" /Platform_Assemblies_Paths %CORE_ROOT%%3B%25cd%25\IL%3B%25cd%25 /in $(MSBuildProjectName).org /out $(MSBuildProjectName).exe
%_DebuggerFullPath% "%CORE_ROOT%\crossgen.exe" /Platform_Assemblies_Paths %CORE_ROOT%%3B%25cd%25\IL%3B%25cd%25 /in $(MSBuildProjectName).org /out $(MSBuildProjectName).exe
set CrossGenStatus=!ERRORLEVEL!
)
call :ReleaseLock
Expand Down