瀏覽代碼

Fix incorrect use of check_csnippets arguments leading to undefined references on linux (#1229)

Arthapz 3 年之前
父節點
當前提交
89569f576f
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. 2 2
      packages/v/volk/xmake.lua

+ 2 - 2
packages/v/volk/xmake.lua

@@ -57,10 +57,10 @@ package("volk")
             defines = "VOLK_IMPLEMENTATION"
         end
 
-        assert(package:check_csnippets({test = format([[
+        assert(package:check_csnippets({test = [[
             #include <volk.h>
             void test() {
                 volkInitialize();
             }
-        ]], {configs = {defines = defines}})}))
+        ]]}, {configs = {defines = defines}}))
     end)