From 50864c22e572cbe60e55ae98fba35560c5a20b2a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Storsj=C3=B6?= Date: Wed, 8 Nov 2023 11:36:50 +0200 Subject: [PATCH] build: Quote the SDKROOT variable when passed as -isysroot This makes building work, if there are spaces in the path to the Xcode used for building (in particular, the user may point to a nondefault version of Xcode by setting DEVELOPER_DIR to point to it when building). --- build/platform-ios.mk | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/build/platform-ios.mk b/build/platform-ios.mk index f04b5c5df9..9a779f5281 100644 --- a/build/platform-ios.mk +++ b/build/platform-ios.mk @@ -10,6 +10,6 @@ endif SDK_MIN = 5.1 SDKROOT := $(shell xcrun --sdk $(shell echo $(SDKTYPE) | tr A-Z a-z) --show-sdk-path) -CFLAGS += -arch $(ARCH) -isysroot $(SDKROOT) -miphoneos-version-min=$(SDK_MIN) -DAPPLE_IOS -fembed-bitcode -LDFLAGS += -arch $(ARCH) -isysroot $(SDKROOT) -miphoneos-version-min=$(SDK_MIN) +CFLAGS += -arch $(ARCH) -isysroot "$(SDKROOT)" -miphoneos-version-min=$(SDK_MIN) -DAPPLE_IOS -fembed-bitcode +LDFLAGS += -arch $(ARCH) -isysroot "$(SDKROOT)" -miphoneos-version-min=$(SDK_MIN)