From 976b8fba6b3c45a1bb74436e034f2a98faf08337 Mon Sep 17 00:00:00 2001 From: Keith Smiley Date: Mon, 12 Sep 2016 11:54:20 -0700 Subject: [PATCH] Embed Swift stdlib to avoid linking --- Makefile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 587892b..1f29719 100644 --- a/Makefile +++ b/Makefile @@ -11,13 +11,15 @@ clean: build: $(SRC) mkdir -p $(BUILD) swiftc \ + -static-stdlib \ + -O -whole-module-optimization \ -o $(BUILD)/$(EXECUTABLE) \ -sdk $(shell xcrun --sdk macosx --show-sdk-path) \ -target x86_64-macosx10.10 \ $(SRC) install: build - install $(EXECUTABLE) $(PREFIX) + install $(BUILD)/$(EXECUTABLE) $(PREFIX) uninstall: rm "$(PREFIX)/$(EXECUTABLE)"