Skip to content

Commit

Permalink
soundtouch: fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
star-hengxing committed Jul 27, 2023
1 parent a862401 commit f1d68d8
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion packages/s/soundtouch/xmake.lua
Original file line number Diff line number Diff line change
Expand Up @@ -26,14 +26,17 @@ package("soundtouch")
if package:is_arch("arm.*") then
table.insert(configs, "-DNEON=" .. (package:config("neon") and "ON" or "OFF"))
end
if package:is_plat("wasm") then
io.replace("CMakeLists.txt", "-Ofast", "", {plain = true})
end
import("package.tools.cmake").install(package, configs)
end)

on_test(function (package)
assert(package:check_cxxsnippets({test = [[
#include <soundtouch/SoundTouch.h>
void test() {
soundtouch::SoundTouch sound{};
soundtouch::SoundTouch sound;
}
]]}))
end)

0 comments on commit f1d68d8

Please sign in to comment.