diff --git a/packages/t/thorvg/xmake.lua b/packages/t/thorvg/xmake.lua index 352f8d626a8..202f72b1013 100644 --- a/packages/t/thorvg/xmake.lua +++ b/packages/t/thorvg/xmake.lua @@ -108,13 +108,7 @@ package("thorvg") end) on_test(function (package) - assert(package:check_cxxsnippets({test = [[ - #include - void test() { - tvg::Initializer::init(tvg::CanvasEngine::Sw, 0); - auto canvas = tvg::SwCanvas::gen(); - } - ]]}, {configs = {languages = "c++14"}})) + assert(package:has_cxxfuncs("tvg::Initializer::init(0, tvg::CanvasEngine::Sw)", {includes = "thorvg.h", configs = {languages = "c++14"}})) if package:config("c_api") then assert(package:has_cxxfuncs("tvg_engine_init", {includes = "thorvg_capi.h"})) end