From 81f1cfba5d8e56e3bfd250f2f0c8704c8da07358 Mon Sep 17 00:00:00 2001 From: Star Brilliant Date: Tue, 14 May 2019 01:36:10 +0800 Subject: [PATCH] Disable static linking to Swift standard libraries According to Apple: Swift compiler no longer supports statically linking the Swift libraries. They're included in the OS by default starting with macOS Mojave 10.14.4. For macOS Mojave 10.14.3 and earlier, there's an optional Swift library package that can be downloaded from "More Downloads" for Apple Developers at https://developer.apple.com/download/more/ --- darwin-wrapper/Makefile | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/darwin-wrapper/Makefile b/darwin-wrapper/Makefile index 1d00c43..d5fa0f4 100644 --- a/darwin-wrapper/Makefile +++ b/darwin-wrapper/Makefile @@ -3,17 +3,10 @@ SWIFTC = swiftc PREFIX = /usr/local -SWIFTC_VERS = $(shell swiftc -version | grep -i swift | awk 'match($$0, /[0-9]/) {print substr($$0, RSTART, RLENGTH) }') - all: doh-logger - $(info SWIFTC_VERS="$(SWIFTC_VERS)") doh-logger: doh-logger.swift - ifeq ($(SWIFTC_VERS), 5) - $(SWIFTC) -o $@ -O $< - else - $(SWIFTC) -o $@ -O -static-stdlib $< - endif + $(SWIFTC) -o $@ -O $< clean: rm -f doh-logger