Skip to content

Commit

Permalink
build: Quote the SDKROOT variable when passed as -isysroot
Browse files Browse the repository at this point in the history
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).
  • Loading branch information
mstorsjo committed Nov 8, 2023
1 parent 34e14ea commit 50864c2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions build/platform-ios.mk
Original file line number Diff line number Diff line change
Expand Up @@ -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)

0 comments on commit 50864c2

Please sign in to comment.