From: Egor Chesakov Date: Fri, 7 Sep 2018 00:11:44 +0000 (-0700) Subject: Add logging to file when CrossGen System.Private.CoreLib.dll on Unix (dotnet/coreclr... X-Git-Tag: submit/tizen/20210909.063632~11030^2~3967 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=6d836cba34b1176dfdae0bb8c964fc97fb8c5664;p=platform%2Fupstream%2Fdotnet%2Fruntime.git Add logging to file when CrossGen System.Private.CoreLib.dll on Unix (dotnet/coreclr#19848) Commit migrated from https://github.com/dotnet/coreclr/commit/e72b0628e2ab19a417bcb4e34686dfd40d0fb592 --- diff --git a/src/coreclr/build.sh b/src/coreclr/build.sh index 95e21b5..6c40251 100755 --- a/src/coreclr/build.sh +++ b/src/coreclr/build.sh @@ -416,20 +416,23 @@ build_CoreLib_ni() { local __CrossGenExec=$1 - echo "Generating native image for System.Private.CoreLib.dll" + if [ -e $__CrossGenCoreLibLog ]; then + rm $__CrossGenCoreLibLog + fi + echo "Generating native image of System.Private.CoreLib.dll for $__BuildOS.$__BuildArch.$__BuildType. Logging to \"$__CrossGenCoreLibLog\"." echo "$__CrossGenExec /Platform_Assemblies_Paths $__BinDir/IL $__IbcTuning /out $__BinDir/System.Private.CoreLib.dll $__BinDir/IL/System.Private.CoreLib.dll" - $__CrossGenExec /Platform_Assemblies_Paths $__BinDir/IL $__IbcTuning /out $__BinDir/System.Private.CoreLib.dll $__BinDir/IL/System.Private.CoreLib.dll + $__CrossGenExec /Platform_Assemblies_Paths $__BinDir/IL $__IbcTuning /out $__BinDir/System.Private.CoreLib.dll $__BinDir/IL/System.Private.CoreLib.dll >> $__CrossGenCoreLibLog 2>&1 if [ $? -ne 0 ]; then - echo "Failed to generate native image for System.Private.CoreLib." + echo "Failed to generate native image for System.Private.CoreLib. Refer to $__CrossGenCoreLibLog" exit 1 fi if [ "$__BuildOS" == "Linux" ]; then echo "Generating symbol file for System.Private.CoreLib.dll" echo "$__CrossGenExec /Platform_Assemblies_Paths $__BinDir /CreatePerfMap $__BinDir $__BinDir/System.Private.CoreLib.dll" - $__CrossGenExec /Platform_Assemblies_Paths $__BinDir /CreatePerfMap $__BinDir $__BinDir/System.Private.CoreLib.dll + $__CrossGenExec /Platform_Assemblies_Paths $__BinDir /CreatePerfMap $__BinDir $__BinDir/System.Private.CoreLib.dll >> $__CrossGenCoreLibLog 2>&1 if [ $? -ne 0 ]; then - echo "Failed to generate symbol file for System.Private.CoreLib." + echo "Failed to generate symbol file for System.Private.CoreLib. Refer to $__CrossGenCoreLibLog" exit 1 fi fi @@ -960,7 +963,7 @@ fi if [ $__CrossBuild == 1 ]; then __CrossComponentBinDir="$__CrossComponentBinDir/$__CrossArch" fi -__CrossgenCoreLibLog="$__LogsDir/CrossgenCoreLib_$__BuildOS.$BuildArch.$__BuildType.log" +__CrossGenCoreLibLog="$__LogsDir/CrossgenCoreLib_$__BuildOS.$__BuildArch.$__BuildType.log" __CrossgenExe="$__CrossComponentBinDir/crossgen" # Init if MSBuild for .NET Core is supported for this platform