Browse Source

add win32 check for building quickjs

tags/v1.1.1
Jerry Sievert Andrew Belt 5 years ago
parent
commit
0dfef2eba8
1 changed files with 6 additions and 1 deletions
  1. +6
    -1
      Makefile

+ 6
- 1
Makefile View File

@@ -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

Loading…
Cancel
Save