From 0dfef2eba86dce8e4e04cd5584eafa97a7597f60 Mon Sep 17 00:00:00 2001 From: Jerry Sievert Date: Thu, 26 Sep 2019 21:59:37 -0700 Subject: [PATCH] add win32 check for building quickjs --- Makefile | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 3cdaf03..fa43533 100644 --- a/Makefile +++ b/Makefile @@ -40,10 +40,11 @@ DEPS += $(quickjs) OBJECTS += $(quickjs) FLAGS += -Idep/QuickJS LDFLAGS += -Ldep/QuickJS -lquickjs +MAKEQJSFLAGS := $(quickjs): cd dep && git clone "https://github.com/JerrySievert/QuickJS" - cd dep/QuickJS && $(MAKE) + cd dep/QuickJS && $(MAKE) $(MAKEQJSFLAGS) # # LuaJIT # luajit := dep/lib/luajit.a @@ -98,3 +99,7 @@ $(quickjs): include $(RACK_DIR)/plugin.mk + +ifdef ARCH_WIN + MAKEQJSFLAGS += CONFIG_WIN32=y +endif