Skip to content

Commit

Permalink
Merge pull request #59 from AnessZurba/feature/linux-support-2
Browse files Browse the repository at this point in the history
Makefile: fix compilation on linux for Swift 6.
  • Loading branch information
messi authored Dec 4, 2024
2 parents 258bcb5 + 3ee1e9c commit 2a711eb
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,7 @@ UNAME_S := $(shell uname -s)

ifeq ($(UNAME_S), Darwin)
BUILD_PATH_PREFIX := .build/apple/Products/Release
endif
ifeq ($(UNAME_S), Linux)
else ifeq ($(UNAME_S), Linux)
BUILD_PATH_PREFIX := .build/release
endif

Expand All @@ -25,7 +24,11 @@ install: build
cp -f $(BUILD_PATH) $(INSTALL_PATH)

build:
ifeq ($(UNAME_S), Darwin)
swift build --disable-sandbox -c release --arch arm64 --arch x86_64
else ifeq ($(UNAME_S), Linux)
swift build --disable-sandbox -c release
endif

uninstall:
rm -f $(INSTALL_PATH)
Expand Down

0 comments on commit 2a711eb

Please sign in to comment.