From 6598b3d2d0c3a630aea1325f6483781096d09200 Mon Sep 17 00:00:00 2001 From: Adam Powers Date: Mon, 19 Oct 2020 11:54:42 -0700 Subject: [PATCH] wasm requires HACKDIR for embedded files --- sys/unix/hints/macOS.2020 | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/sys/unix/hints/macOS.2020 b/sys/unix/hints/macOS.2020 index 85f9b3208..e6fae4c06 100755 --- a/sys/unix/hints/macOS.2020 +++ b/sys/unix/hints/macOS.2020 @@ -281,6 +281,11 @@ POSTINSTALL+= if test -f $(SHELLDIR)/$(GAME); then \ endif # WANT_BUNDLE endif # !WANT_SHARE_INSTALL +ifdef CROSS_TO_WASM +HACKDIR=/ +PREFIX= +endif # !CROSS_TO_WASM + INSTDIR=$(HACKDIR) VARDIR=$(HACKDIR) @@ -294,6 +299,7 @@ VARDIR=$(HACKDIR) #-INCLUDE cross-pre.2020 # #-POST + ifdef WANT_LIBNH libnh.a: $(HOBJ) $(LIBNHSYSOBJ) ../lib/lua/liblua.a $(AR) rcs $@ $(HOBJ) $(LIBNHSYSOBJ) ../lib/lua/liblua.a