From 2cb708ca844e746cd0ee52f72977bbee4842fe55 Mon Sep 17 00:00:00 2001 From: Harold Sun Date: Mon, 23 Sep 2024 01:45:19 +0000 Subject: [PATCH] fix: get LLVM static libraries --- build/static.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build/static.rs b/build/static.rs index 6bc2beaf9..e83517845 100644 --- a/build/static.rs +++ b/build/static.rs @@ -41,7 +41,7 @@ fn get_library_name(path: &Path) -> Option { /// Gets the LLVM static libraries required to link to `libclang`. fn get_llvm_libraries() -> Vec { - common::run_llvm_config(&["--libs"]) + common::run_llvm_config(&["--libs", "--link-static"]) .unwrap() .split_whitespace() .filter_map(|p| {