diff options
| author | StevenWdV <stevenwdv@gmail.com> | 2021-12-17 16:39:51 +0100 |
|---|---|---|
| committer | StevenWdV <stevenwdv@gmail.com> | 2021-12-17 16:39:51 +0100 |
| commit | a79995670baf0ae755cbbe78c5d77fc49575d342 (patch) | |
| tree | 4c98d0962b9ef02b652c418f217f0d365c3139f9 /wrappers/swift | |
| parent | a47513aeeb728b6316ba6765afdd7e5adbf4f2e3 (diff) | |
Fix PHP wrapper on Unix, extract common platform detection logic
Diffstat (limited to 'wrappers/swift')
| -rw-r--r-- | wrappers/swift/Makefile | 5 |
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 |
