diff options
| author | ruki <[email protected]> | 2024-08-21 22:59:29 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2024-08-21 22:59:29 +0800 |
| commit | 752550f369fefbe1b1438f69e9d0e39c1abe9084 (patch) | |
| tree | a2acd213b2634e7c714213b11add6c7458366c1f | |
| parent | 09c69ad940d365caf650cecdda664b1f97b8d892 (diff) | |
disable readline
| -rw-r--r-- | core/xmake.lua | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/core/xmake.lua b/core/xmake.lua index ebe2c5553..99f4fc1bc 100644 --- a/core/xmake.lua +++ b/core/xmake.lua @@ -78,11 +78,17 @@ option("readline") add_cincludes("stdio.h", "readline/readline.h") add_cfuncs("readline") add_defines("XM_CONFIG_API_HAVE_READLINE") + after_check(function (option) + if option:dep("cosmocc"):enabled() then + option:enable(false) + end + end) option_end() -- the curses option option("curses") set_description("Enable or disable curses library") + add_defines("XM_CONFIG_API_HAVE_CURSES") add_deps("cosmocc") before_check(function (option) if is_plat("mingw") then @@ -98,7 +104,6 @@ option("curses") option:enable(false) end end) - add_defines("XM_CONFIG_API_HAVE_CURSES") option_end() -- the pdcurses option |
