Skip to content

Commit

Permalink
Auto-update intx to v0.12.0 (#5202)
Browse files Browse the repository at this point in the history
* Update intx to v0.12.0

* improve check

---------

Co-authored-by: star9029 <[email protected]>
  • Loading branch information
waruqi and star-hengxing committed Sep 11, 2024
1 parent fd78f60 commit f337d09
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion packages/i/intx/xmake.lua
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,20 @@ package("intx")
add_urls("https://github.com/chfast/intx/archive/refs/tags/$(version).tar.gz",
"https://github.com/chfast/intx.git")

add_versions("v0.12.0", "d68ff5dde9a2f340c73be67888f3f72bb18a2ad30aa16cd663ec3bc611afc9b4")
add_versions("v0.11.0", "bff2a78e3a9a3b9bbabf50500feae65bc0ec50a2364f4a83768277d6eba7a844")

add_deps("cmake")

on_check(function (package)
assert(package:check_cxxsnippets({test = [[
#include <concepts>
void test(std::signed_integral auto x) {}
#include <algorithm>
#include <string>
void test(std::signed_integral auto x) {
std::string s;
std::ranges::reverse(s);
}
]]}, {configs = {languages = "c++20"}}), "package(intx) Require at least C++20.")
end)

Expand Down

0 comments on commit f337d09

Please sign in to comment.