Allow mscorlib.dll to be built for non x64 platforms on Linux.
fi
# Invoke MSBuild
- mono "$__MSBuildPath" /nologo "$__ProjectRoot/build.proj" /verbosity:minimal "/fileloggerparameters:Verbosity=normal;LogFile=$__LogsDir/MSCorLib_$__BuildOS__$__BuildArch__$__BuildType.log" /t:Build /p:OSGroup=$__BuildOS /p:BuildOS=$__BuildOS /p:UseRoslynCompiler=true /p:BuildNugetPackage=false
+ mono "$__MSBuildPath" /nologo "$__ProjectRoot/build.proj" /verbosity:minimal "/fileloggerparameters:Verbosity=normal;LogFile=$__LogsDir/MSCorLib_$__BuildOS__$__BuildArch__$__BuildType.log" /t:Build /p:OSGroup=$__BuildOS /p:BuildOS=$__BuildOS /p:BuildArch=$__MSBuildBuildArch /p:UseRoslynCompiler=true /p:BuildNugetPackage=false
}
echo "Commencing CoreCLR Repo build"
#define _cdecl
#define CDECL
-#ifndef PAL_STDCPP_COMPAT
+// On ARM __fastcall is ignored and causes a compile error
+#if !defined(PAL_STDCPP_COMPAT) || defined(__arm__)
#define __fastcall
#define _fastcall
-#endif // PAL_STDCPP_COMPAT
+#endif // !defined(PAL_STDCPP_COMPAT) || defined(__arm__)
#endif // !defined(__i386__)
#ifdef PAL_STDCPP_COMPAT
+#ifdef BIT64
typedef unsigned long int uintptr_t;
+#else // !BIT64
+typedef unsigned int uintptr_t;
+#endif // !BIT64
+
typedef char16_t WCHAR;
#else // PAL_STDCPP_COMPAT