diff --git a/eng/native/build-commons.sh b/eng/native/build-commons.sh index e9d696fa87f14a..f8923abb391061 100755 --- a/eng/native/build-commons.sh +++ b/eng/native/build-commons.sh @@ -78,7 +78,7 @@ build_native() cmakeArgs="-DCMAKE_SYSTEM_VARIANT=maccatalyst $cmakeArgs" fi - if [[ ( "$targetOS" == android || "$targetOS" == linux-bionic ) && -z "$ROOTFS_DIR" ]]; then + if [[ ( "$targetOS" == android || "$targetOS" == linux-bionic )]]; then if [[ -z "$ANDROID_NDK_ROOT" ]]; then echo "Error: You need to set the ANDROID_NDK_ROOT environment variable pointing to the Android NDK root." exit 1 diff --git a/src/mono/mono.proj b/src/mono/mono.proj index 7cfff98ac8eb37..13984124c72596 100644 --- a/src/mono/mono.proj +++ b/src/mono/mono.proj @@ -772,7 +772,7 @@ - <_MonoSkipInitCompiler>true + <_MonoSkipInitCompiler>false true $(ANDROID_NDK_ROOT)/sysroot