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 7751c2c
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions packages/f/ffts/xmake.lua
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,14 @@ package("ffts")

add_deps("cmake")

if on_check then
on_check(function (package)
if package:has_tool("cc", "clang", "clang_cl") then
raise("package(ffts) unsupported clang toolchain")
end
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 7751c2c

Please sign in to comment.