Skip to content

Commit

Permalink
vc-ltl5: fix clang-cl toolchain
Browse files Browse the repository at this point in the history
  • Loading branch information
star-hengxing committed Aug 13, 2023
1 parent e882990 commit f438d6c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions packages/v/vc-ltl5/xmake.lua
Original file line number Diff line number Diff line change
@@ -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")
Expand Down Expand Up @@ -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?
Expand Down
4 changes: 2 additions & 2 deletions packages/y/yy-thunks/xmake.lua
Original file line number Diff line number Diff line change
@@ -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")
Expand All @@ -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

Expand Down

0 comments on commit f438d6c

Please sign in to comment.