Skip to content

Commit 08f86ef

Browse files
committed
Remove hard-coded target and optimize
Closes biscuitehh#15, closes biscuitehh#20. Resolves biscuitehh#7, resolves biscuitehh#14, resolves biscuitehh#16, resolves biscuitehh#17.
1 parent 6061b86 commit 08f86ef

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Makefile

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
VERSION = 2
22
LIBRARY_NAME = pam_watchid.so
33
DESTINATION = /usr/local/lib/pam
4-
TARGET = x86_64-apple-macosx10.15
4+
TARGET = $(shell clang -dumpmachine)
55

66
all:
7-
swiftc watchid-pam-extension.swift -o $(LIBRARY_NAME) -target $(TARGET) -emit-library
7+
swiftc watchid-pam-extension.swift -O -Ounchecked -gnone -o $(LIBRARY_NAME) -target $(TARGET) -emit-library
88

99
install: all
1010
mkdir -p $(DESTINATION)

0 commit comments

Comments
 (0)