summaryrefslogtreecommitdiff
path: root/tools/mwasmarm_patcher/Makefile
diff options
context:
space:
mode:
authorred031000 <rubenru09@aol.com>2021-02-10 10:54:44 +0000
committerGitHub <noreply@github.com>2021-02-10 10:54:44 +0000
commit41bce72d7d97a7843debfe0807d68423f54142f5 (patch)
treeef85d7e696db76e9eaba5600d89afb7b4ab454b4 /tools/mwasmarm_patcher/Makefile
parent572eddf4890ecbcd1b0e06c02046e29ddd58526f (diff)
parent904d950a9ed1876554557cba5a2e627d46c139cb (diff)
Merge pull request #317 from dsastr/macos-mojave-support
Add support for building on macOS
Diffstat (limited to 'tools/mwasmarm_patcher/Makefile')
-rw-r--r--tools/mwasmarm_patcher/Makefile5
1 files changed, 5 insertions, 0 deletions
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