diff options
| author | ruki <[email protected]> | 2024-08-21 22:53:54 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2024-08-21 22:53:54 +0800 |
| commit | 09c69ad940d365caf650cecdda664b1f97b8d892 (patch) | |
| tree | 846e09027430d3ce711456e81bd1cac5252126cf /core/xmake.lua | |
| parent | ae610f76b096fa4d3644b5d64ecd02dafdace375 (diff) | |
disable curse
Diffstat (limited to 'core/xmake.lua')
| -rw-r--r-- | core/xmake.lua | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/core/xmake.lua b/core/xmake.lua index df84e81bb..ebe2c5553 100644 --- a/core/xmake.lua +++ b/core/xmake.lua @@ -83,6 +83,7 @@ option_end() -- the curses option option("curses") set_description("Enable or disable curses library") + add_deps("cosmocc") before_check(function (option) if is_plat("mingw") then option:add("cincludes", "ncursesw/curses.h") @@ -92,6 +93,11 @@ option("curses") option:add("links", "curses") end end) + after_check(function (option) + if option:dep("cosmocc"):enabled() then + option:enable(false) + end + end) add_defines("XM_CONFIG_API_HAVE_CURSES") option_end() |
