Update fast_io to version 2024.03.31 (#4108)

pull/4115/head
Snowinter 6 months ago committed by GitHub
parent eb6356df2e
commit 6d66939329
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 19
      packages/f/fast_io/xmake.lua

@ -9,15 +9,24 @@ package("fast_io")
add_urls("https://gitee.com/qabeowjbtkwb/fast_io.git") add_urls("https://gitee.com/qabeowjbtkwb/fast_io.git")
add_versions("2023.1.28", "b99b32ab429eb6256fd8de1e17fe38e4c54eb49c") add_versions("2023.1.28", "b99b32ab429eb6256fd8de1e17fe38e4c54eb49c")
add_versions("2024.3.31", "a13c3ed1cd6da64b381322f3466f3b4fc9a80ff2")
on_install("windows", "linux", "macosx", "msys", "mingw", function (package) on_install("windows", "linux", "macosx", "msys", "mingw", function (package)
os.cp("include", package:installdir()) os.cp("include", package:installdir())
end) end)
on_test(function (package) on_test(function (package)
assert(package:check_cxxsnippets({test = [[ if package:version() == "2023.1.28" then
void test() { assert(package:check_cxxsnippets({test = [[
print("Hello, fast_io world!\n"); void test() {
} print("Hello, fast_io world!\n");
]]}, {configs = {languages = "c++20"}, includes = {"fast_io.h"}})) }
]]}, {configs = {languages = "c++20"}, includes = {"fast_io.h"}}))
else
assert(package:check_cxxsnippets({test = [[
void test() {
fast_io::io::print("Hello, fast_io world!\n");
}
]]}, {configs = {languages = "c++20"}, includes = {"fast_io.h"}}))
end
end) end)

Loading…
Cancel
Save