|
@@ -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?
|