summaryrefslogtreecommitdiff
path: root/wrappers/swift
diff options
context:
space:
mode:
authorStevenWdV <stevenwdv@gmail.com>2021-12-17 16:39:51 +0100
committerStevenWdV <stevenwdv@gmail.com>2021-12-17 16:39:51 +0100
commita79995670baf0ae755cbbe78c5d77fc49575d342 (patch)
tree4c98d0962b9ef02b652c418f217f0d365c3139f9 /wrappers/swift
parenta47513aeeb728b6316ba6765afdd7e5adbf4f2e3 (diff)
Fix PHP wrapper on Unix, extract common platform detection logic
Diffstat (limited to 'wrappers/swift')
-rw-r--r--wrappers/swift/Makefile5
1 files changed, 1 insertions, 4 deletions
diff --git a/wrappers/swift/Makefile b/wrappers/swift/Makefile
index 826dde3..84b3cc1 100644
--- a/wrappers/swift/Makefile
+++ b/wrappers/swift/Makefile
@@ -1,15 +1,12 @@
.PHONY: build test clean
ifneq (clean,$(MAKECMDGOALS))
-GOOS != go env GOHOSTOS
-GOARCH != go env GOHOSTARCH
+include ../../exports/platform.mk
ifeq (Windows_NT,$(OS))
SWIFT = ./swift.cmd
-export PATH := $(abspath ../../exports/$(GOOS)/$(GOARCH)):$(PATH)
else
SWIFT = swift
-export LD_LIBRARY_PATH := $(abspath ../../exports/$(GOOS)/$(GOARCH)):$(LD_LIBRARY_PATH)
endif
endif