From a0ec0a479163122ba4facef38b8b527229a1b8ca Mon Sep 17 00:00:00 2001 From: Teddy Wing Date: Sun, 7 Mar 2021 15:17:56 +0100 Subject: Makefile: Set minimum Mac OS X version to 10.7 Build for as early a Mac OS X version as we can. Can't build for 10.5 because only 10.6+ supports ARC. Can't build for 10.6 because DDHotKey requires weak references, and these are only supported starting in 10.7: https://en.wikipedia.org/w/index.php?title=Weak_reference&oldid=1000364515#Objective-C_2.0 --- Makefile | 2 ++ 1 file changed, 2 insertions(+) (limited to 'Makefile') diff --git a/Makefile b/Makefile index 3dc36cb..bfceaf8 100644 --- a/Makefile +++ b/Makefile @@ -5,6 +5,7 @@ DDHOTKEY_OBJ := $(patsubst %.m,%.o,$(wildcard lib/DDHotKey/*.m)) all: $(SOURCES) build/libddhotkey.a build/include/*.h clang -x objective-c \ + -mmacosx-version-min=10.7 \ -framework Carbon \ -framework Cocoa \ -framework CoreGraphics \ @@ -21,6 +22,7 @@ build/include/%.h: lib/DDHotKey/%.h lib/DDHotKey/%.o: lib/DDHotKey/%.m clang -x objective-c \ + -mmacosx-version-min=10.7 \ -fobjc-arc \ -c \ $< -- cgit v1.2.3