Skip to content

Commit

Permalink
Embed Swift stdlib to avoid linking
Browse files Browse the repository at this point in the history
  • Loading branch information
keith committed Sep 12, 2016
1 parent b9d90ee commit 976b8fb
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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)"

0 comments on commit 976b8fb

Please sign in to comment.