From d188cfae544265a3fce56a71607b86d94ab73614 Mon Sep 17 00:00:00 2001 From: tmontaigu Date: Fri, 13 Jan 2023 19:32:50 +0100 Subject: [PATCH] fix(rust): change tinfo linking to ncurses - tinfo is a part of the ncurses project. - tinfo does not seem easily installable stand alone (no brew install tinfo, no dnf install tinfo-devel, etc) but installing ncurses is possible and generally makes tinfo 'findable' - on macos (M1 mac) it seems that even with ncurses installed tinfo is not found, but linking to ncurses fixes the problem --- compiler/lib/Bindings/Rust/build.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/compiler/lib/Bindings/Rust/build.rs b/compiler/lib/Bindings/Rust/build.rs index 4ac724d93..1ad9114be 100644 --- a/compiler/lib/Bindings/Rust/build.rs +++ b/compiler/lib/Bindings/Rust/build.rs @@ -318,7 +318,7 @@ so your compiler/linker will have to lookup libs and include dirs on their own" println!("cargo:rustc-link-lib=static={}", llvm_static_lib); } // required by llvm - println!("cargo:rustc-link-lib=tinfo"); + println!("cargo:rustc-link-lib=ncurses"); if let Some(name) = get_system_libcpp() { println!("cargo:rustc-link-lib={}", name); }