瀏覽代碼

quickjs:添加缺失的头文件,增加bignum (#698)

bansky 3 年之前
父節點
當前提交
2b15e482e9
共有 1 個文件被更改,包括 3 次插入1 次删除
  1. 3 1
      packages/q/quickjs/xmake.lua

+ 3 - 1
packages/q/quickjs/xmake.lua

@@ -18,10 +18,12 @@ package("quickjs")
             target("quickjs")
                 set_kind("$(kind)")
                 add_files("quickjs*.c", "cutils.c", "lib*.c")
+                add_headerfiles("quickjs-libc.h")
                 add_headerfiles("quickjs.h")
                 add_installfiles("*.js", {prefixdir = "share"})
                 set_languages("c99")
                 add_defines("CONFIG_VERSION=\"%s\"", "_GNU_SOURCE")
+                add_defines("CONFIG_BIGNUM")
                 if is_plat("windows", "mingw") then
                     add_defines("__USE_MINGW_ANSI_STDIO")
                 end
@@ -38,4 +40,4 @@ package("quickjs")
 
     on_test(function (package)
         assert(package:has_cfuncs("JS_NewRuntime", {includes = "quickjs.h"}))
-    end)
+    end)