From fc81c4a0af763477fa485e2648cc47ffd5ed703d Mon Sep 17 00:00:00 2001 From: Dsaster <78389441+dsastr@users.noreply.github.com> Date: Sat, 6 Feb 2021 01:16:47 +0100 Subject: add macOS support --- tools/knarc/Makefile | 2 +- tools/mwasmarm_patcher/Makefile | 5 +++++ 2 files changed, 6 insertions(+), 1 deletion(-) (limited to 'tools') diff --git a/tools/knarc/Makefile b/tools/knarc/Makefile index 7dc8bd24..62abc062 100644 --- a/tools/knarc/Makefile +++ b/tools/knarc/Makefile @@ -8,7 +8,7 @@ else C_SRCS := UNAME_S := $(shell uname -s) ifeq ($(UNAME_S),Darwin) -LDFLAGS += -lstdc++ -lc++ -lc +LDFLAGS += -lstdc++ -lc++ -lc /usr/local/opt/llvm@8/lib/libc++fs.a -O2 -Wall -Wno-switch else LDFLAGS += -lstdc++fs endif diff --git a/tools/mwasmarm_patcher/Makefile b/tools/mwasmarm_patcher/Makefile index 9765f713..26df548c 100644 --- a/tools/mwasmarm_patcher/Makefile +++ b/tools/mwasmarm_patcher/Makefile @@ -1,6 +1,11 @@ .PHONY: all clean +UNAME_S := $(shell uname -s) +ifeq ($(UNAME_S),Darwin) +CC := gcc-5 +else CC := gcc +endif CFLAGS := -O3 .PHONY: all clean -- cgit v1.2.3