Free fork of NotProton: Windows Steam games in Mac Steam, on CodeWeavers' Wine and Apple's Game Porting Toolkit
Swift apple-silicond3dmetaldxmtdxvkgame-porting-toolkitgptkmac-gamingmacosmetalfxrosetta-2steamsteam-playwinewinecx
build(make): use Xcode when the Command Line Tools are the active developer dir
raymondchins285d9b24a545
diff --git a/Makefile b/Makefileindex 6c003cf..74ad71d 100644--- a/Makefile+++ b/Makefile@@ -7,6 +7,17 @@ MINCHECK_VER := 26.0GLASS_SDK := 26.0AVAIL := -Werror=unguarded-availability-new+# The Command Line Tools can't build the app (no xcstringstool or actool). When they are the+# active developer dir, point make's commands at Xcode, as scripts/build-local.sh does.+ifeq ($(origin DEVELOPER_DIR),undefined)+ifeq ($(shell xcode-select -p 2>/dev/null),/Library/Developer/CommandLineTools)+DEVELOPER_DIR := $(firstword $(wildcard /Applications/Xcode-beta.app/Contents/Developer /Applications/Xcode.app/Contents/Developer))+ifneq ($(DEVELOPER_DIR),)+export DEVELOPER_DIR+endif+endif+endif+CFLAGS := -arch $(ARCH) -mmacosx-version-min=$(MIN_VER) $(AVAIL) \-std=c17 -O2 -Wall -Wextra -Wno-unused-parameter \-fPIC -MMD -MP \