Skip to content

Commit

Permalink
assert clang toolchain
Browse files Browse the repository at this point in the history
  • Loading branch information
star-hengxing committed Oct 13, 2024
1 parent 12d13c1 commit a538df3
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions packages/f/ffts/xmake.lua
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,12 @@ package("ffts")

add_deps("cmake")

if on_check then
on_check(function (package)
assert(package:has_tool("cc", "clang", "clang-cl"), "package(ffts) unsupported clang toolchain")
end)
end

on_install(function (package)
-- remove test
io.replace("CMakeLists.txt", "endif(ENABLE_STATIC OR ENABLE_SHARED)", "endif(0)", {plain = true})
Expand Down

0 comments on commit a538df3

Please sign in to comment.