From 733b0618da8109e7ed032df0ce798422a23e0fd1 Mon Sep 17 00:00:00 2001 From: star9029 Date: Fri, 22 Nov 2024 11:23:53 +0800 Subject: [PATCH] add check --- packages/v/verilator/xmake.lua | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/packages/v/verilator/xmake.lua b/packages/v/verilator/xmake.lua index 498a530fb..88937af76 100644 --- a/packages/v/verilator/xmake.lua +++ b/packages/v/verilator/xmake.lua @@ -11,6 +11,14 @@ package("verilator") add_deps("cmake") + if on_check then + on_check(function (package) + if is_subhost("msys") and xmake:version():lt("2.9.7") then + raise("package(verilator) requires xmake >= 2.9.7 on msys") + end + end) + end + on_load(function (package) if not package:is_precompiled() then package:add("deps", "flex", {kind = "library"})