Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexander Köplinger <alex.koeplinger@outlook.com>2020-11-13 16:29:02 +0300
committerGitHub <noreply@github.com>2020-11-13 16:29:02 +0300
commit0e3d75d6d6d6b6c404a6d02f22137262f0107d6b (patch)
tree5e0075e902e49ac2b86b18be537f7784158d659c /sdks/versions.mk
parentebb9be6421b67b92052fd9510d4f75a40e8c7efe (diff)
Fix iOS sdks build on Xcode 12 (#20573)
The new Xcode introduced functions like preadv/pwritev in the SDK that get erraneously detected by autoconf even though we can't use them. Disable these functions and also add a check for Xcode version to workaround https://github.com/mono/mono/issues/19393.
Diffstat (limited to 'sdks/versions.mk')
-rw-r--r--sdks/versions.mk2
1 files changed, 2 insertions, 0 deletions
diff --git a/sdks/versions.mk b/sdks/versions.mk
index 11f47bbcd96..7c7e48eeb7a 100644
--- a/sdks/versions.mk
+++ b/sdks/versions.mk
@@ -20,6 +20,8 @@ ANDROID_SDK_VERSION_x86_64?=21
# iOS
XCODE_DIR?=/Applications/Xcode.app/Contents/Developer
+XCODE_VERSION:=$(shell /usr/libexec/PlistBuddy -c "Print :CFBundleShortVersionString" $(XCODE_DIR)/../version.plist)
+XCODE_MAJOR_VERSION:=$(word 1, $(subst ., ,$(XCODE_VERSION)))
# min versions of the targets
MACOS_VERSION_MIN?=10.9