mirror of
https://github.com/fish-shell/fish-shell.git
synced 2024-11-23 02:27:28 +08:00
build.rs: Try ncurses if curses couldn't be found
That's gonna be the typical one
This commit is contained in:
parent
5aa622daef
commit
f0af165348
6
build.rs
6
build.rs
|
@ -39,7 +39,11 @@ fn main() {
|
|||
.map(|s| s.to_owned())
|
||||
.collect()
|
||||
};
|
||||
rsconf::link_libraries(&curses_libnames, LinkType::Default);
|
||||
if !curses_libnames.is_empty() {
|
||||
rsconf::link_libraries(&curses_libnames, LinkType::Default);
|
||||
} else {
|
||||
rsconf::link_libraries(&["ncurses"], LinkType::Default);
|
||||
}
|
||||
|
||||
cc::Build::new()
|
||||
.file("src/libc.c")
|
||||
|
|
Loading…
Reference in New Issue
Block a user