Skip to content

Commit

Permalink
Update xmake.lua
Browse files Browse the repository at this point in the history
  • Loading branch information
star-hengxing authored Jan 30, 2025
1 parent 11fa9d3 commit cf04da6
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/r/reactiveplusplus/xmake.lua
Original file line number Diff line number Diff line change
Expand Up @@ -17,18 +17,18 @@ package("reactiveplusplus")

if on_check then
on_check(function (package)
if package:version() and package:version():ge("2.2.0") then
if package:version() and package:version():ge("2.1.0") then
local msvc = package:toolchain("msvc")
if msvc then
local vs_toolset = msvc:config("vs_toolset")
if vs_toolset then
local vs_toolset_ver = import("core.base.semver").new(vs_toolset)
local minor = vs_toolset_ver:minor()
assert(minor and minor >= 30, "package(reactiveplusplus) require vs_toolset >= 14.3")
assert(minor and minor >= 30, "package(reactiveplusplus >=2.1.0) require vs_toolset >= 14.3")
end
end
if package:is_plat("android") then
raise("package(reactiveplusplus >=2.2.0) unsupported current platform")
raise("package(reactiveplusplus >=2.1.0) unsupported current platform")
end
end
end)
Expand Down

0 comments on commit cf04da6

Please sign in to comment.