Skip to content

Commit

Permalink
quickjs-ng: add check
Browse files Browse the repository at this point in the history
  • Loading branch information
Chi-EEE committed Nov 18, 2024
1 parent eb7c731 commit 56c7504
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions packages/q/quickjs-ng/xmake.lua
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,13 @@ package("quickjs-ng")
if is_plat("linux", "bsd") then
add_syslinks("m", "pthread")
end

if on_check then
on_check("windows", function (package)
assert(package:has_cincludes("stdatomic.h", {configs = {languages = "c11"}}),
"package(neco) Require at least C11 and stdatomic.h")
end)
end

add_deps("mimalloc")
add_deps("cmake")
Expand Down

0 comments on commit 56c7504

Please sign in to comment.