diff --git a/packages/v/vc-ltl5/xmake.lua b/packages/v/vc-ltl5/xmake.lua index 06fedbdc1a3..3da79408be0 100644 --- a/packages/v/vc-ltl5/xmake.lua +++ b/packages/v/vc-ltl5/xmake.lua @@ -1,5 +1,5 @@ package("vc-ltl5") - + set_kind("binary") 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 +32,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? diff --git a/packages/y/yy-thunks/xmake.lua b/packages/y/yy-thunks/xmake.lua index a38bd8fc173..297dba9e924 100644 --- a/packages/y/yy-thunks/xmake.lua +++ b/packages/y/yy-thunks/xmake.lua @@ -1,5 +1,5 @@ package("yy-thunks") - + set_kind("binary") 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 +12,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