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

* vc-ltl5: fix clang-cl toolchain

* remove kind

* remove kind
pull/2446/head
star9029 2 years ago committed by GitHub
parent 12694d666a
commit 57c324289b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 3
      packages/v/vc-ltl5/xmake.lua
  2. 3
      packages/y/yy-thunks/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,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

Loading…
Cancel
Save