瀏覽代碼

vc-ltl5: fix clang-cl toolchain (#2438)

* vc-ltl5: fix clang-cl toolchain

* remove kind

* remove kind
star9029 2 年之前
父節點
當前提交
57c324289b
共有 2 個文件被更改,包括 2 次插入4 次删除
  1. 1 2
      packages/v/vc-ltl5/xmake.lua
  2. 1 2
      packages/y/yy-thunks/xmake.lua

+ 1 - 2
packages/v/vc-ltl5/xmake.lua

@@ -1,5 +1,4 @@
 package("vc-ltl5")
-
     set_homepage("https://github.com/Chuyu-Team/VC-LTL5")
     set_description("Shared to msvcrt.dll or ucrtbase.dll and optimize the C/C++ application file size")
     set_license("EPL-2.0")
@@ -32,7 +31,7 @@ package("vc-ltl5")
         import("core.tool.toolchain")
         -- check vs version
         local vs = toolchain.load("msvc"):config("vs")
-        if tonumber(vs) < 2015 then
+        if vs and tonumber(vs) < 2015 then
             cprint("${color.warning}vc-ltl5 only supports vc14.0 or later versions")
         end
         -- is xp?

+ 1 - 2
packages/y/yy-thunks/xmake.lua

@@ -1,5 +1,4 @@
 package("yy-thunks")
-
     set_homepage("https://github.com/Chuyu-Team/YY-Thunks")
     set_description("Fix DecodePointer, EncodePointer,RegDeleteKeyEx etc. APIs not found in Windows XP RTM.")
     set_license("MIT")
@@ -12,7 +11,7 @@ package("yy-thunks")
 
         -- check vs version
         local vs = toolchain.load("msvc"):config("vs")
-        if tonumber(vs) < 2005 then
+        if vs and tonumber(vs) < 2005 then
             raise("YY-Thunks only supports VS2008 or later versions")
         end