diff options
| author | Teddy Wing | 2021-03-07 15:17:56 +0100 |
|---|---|---|
| committer | Teddy Wing | 2021-03-07 15:17:56 +0100 |
| commit | a0ec0a479163122ba4facef38b8b527229a1b8ca (patch) | |
| tree | 6bfcbca77014ead1774d6c81ce23b9db2141f1a3 /Makefile | |
| parent | e1cdd8cbde46d8610e05d9a79c3e90b7f2a75c0a (diff) | |
| download | Re-Good-Catalina-Invert-Colours-a0ec0a479163122ba4facef38b8b527229a1b8ca.tar.bz2 | |
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
Diffstat (limited to 'Makefile')
| -rw-r--r-- | Makefile | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -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 \ $< |
