mirror of
https://github.com/redis/redis.git
synced 2026-10-28 16:35:46 +08:00
Resolve SDK names with xcrun and reject empty SDK paths
This commit is contained in:
1 parent
ce9333df56
commit
56afae5439
1 file changed
+4
-1
@@ -38,7 +38,10 @@ endif
|
||||
ifeq ($(uname_S),Darwin)
|
||||
ifeq ("$(wildcard /usr/lib/libSystem.dylib)","")
|
||||
# Use the selected SDK; the CLT SDK may require a newer linker than Xcode.
|
||||
MACOS_SDK := $(or $(SDKROOT),$(shell xcrun --sdk macosx --show-sdk-path))
|
||||
MACOS_SDK := $(shell xcrun --show-sdk-path 2>/dev/null)
|
||||
ifeq ($(MACOS_SDK),)
|
||||
$(error Could not resolve macOS SDK path)
|
||||
endif
|
||||
LIBS = -L "$(MACOS_SDK)/usr/lib" -lsystem
|
||||
endif
|
||||
endif
|
||||
|
||||
Reference in new issue
Block a user