Skip to content

Commit e19fef4

Browse files
committed
fix curses
1 parent 528689f commit e19fef4

File tree

3 files changed

+7
-2
lines changed

3 files changed

+7
-2
lines changed

configure

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,8 @@
2525
xmake_sh_projectdir=$(X= cd -- "$(dirname -- "$0")" && pwd -P)
2626
xmake_sh_builddir="build"
2727
xmake_sh_version="1.0.5"
28-
xmake_sh_verbose=true
29-
xmake_sh_diagnosis=true
28+
xmake_sh_verbose=false
29+
xmake_sh_diagnosis=false
3030
xmake_sh_copyright="Copyright (C) 2022-present Ruki Wang, https://xmake.io."
3131
xmake_sh_makefile="${xmake_sh_projectdir}/Makefile"
3232
xmake_sh_ninjafile="${xmake_sh_projectdir}/build.ninja"

core/xmake.lua

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,9 @@ option("curses")
9999
if is_plat("mingw") then
100100
option:add("cincludes", "ncursesw/curses.h")
101101
option:add("links", "ncursesw")
102+
elseif is_plat("macosx") then
103+
option:add("cincludes", "curses.h")
104+
option:add("links", "ncurses")
102105
else
103106
option:add("cincludes", "curses.h")
104107
option:add("links", "curses")

core/xmake.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,8 @@ option_find_curses() {
7171
if test_nz "${ncurses_ldflags}"; then
7272
add_cflags `pkg-config --cflags ${ncurses} 2>/dev/null`
7373
add_ldflags "${ncurses_ldflags}"
74+
elif is_plat "macosx"; then
75+
add_links "ncurses"
7476
else
7577
add_links "curses"
7678
fi

0 commit comments

Comments
 (0)