Add comment about disabling crossgen command for cross build
authorGeunsik Lim <geunsik.lim@samsung.com>
Thu, 10 Mar 2016 00:56:27 +0000 (09:56 +0900)
committerGeunsik Lim <geunsik.lim@samsung.com>
Thu, 10 Mar 2016 00:56:27 +0000 (09:56 +0900)
As we all know, the current cross build generates exectuable
'crossgen' with arm architecture (without x86 architecture).
So, it can not be run to make mscorlib.ni.dll from mscorlib.dll
on X86-based build machine.
Let's add a comment why we have to skip crossgen command in
build_mscorlib() of build.sh in case of cross build for Linux/ARM.

Signed-off-by: Geunsik Lim <geunsik.lim@samsung.com>
Commit migrated from https://github.com/dotnet/coreclr/commit/af1b954466de2b931809434bf8ad4dc355dc3e98

src/coreclr/build.sh

index a5723af..e98b026 100755 (executable)
@@ -248,6 +248,8 @@ build_mscorlib()
         exit 1
     fi
 
+    # The cross build generates exectuable 'crossgen' with arm architecture (without x86).
+    # It can not be run to make mscorlib.ni.dll from mscorlib.dll on X86-based build machine.
     if [ $__CrossBuild != 1 ]; then
        if [ $__SkipCoreCLR == 0 -a -e $__BinDir/crossgen ]; then
            echo "Generating native image for mscorlib."