mirror of
https://github.com/pezkuwichain/revive.git
synced 2026-04-26 00:37:58 +00:00
lld-sys: link against lto lib
Signed-off-by: xermicus <cyrill@parity.io>
This commit is contained in:
@@ -12,9 +12,3 @@ libc = { workspace = true }
|
||||
|
||||
[build-dependencies]
|
||||
cc = { workspace = true }
|
||||
|
||||
[target.aarch64-apple-darwin]
|
||||
rustflags = [
|
||||
"-C", "link-arg=-undefined",
|
||||
"-C", "link-arg=dynamic_lookup",
|
||||
]
|
||||
|
||||
+11
-1
@@ -20,7 +20,17 @@ fn main() {
|
||||
|
||||
println!("cargo:rustc-link-search=native={}", llvm_config("--libdir"));
|
||||
|
||||
for lib in ["lldELF", "lldCommon", "lldMachO"] {
|
||||
for lib in [
|
||||
"lldELF",
|
||||
"lldCommon",
|
||||
"lldMachO",
|
||||
"LLVMSupport",
|
||||
"LLVMLinker",
|
||||
"LLVMCore",
|
||||
"LLVMLTO",
|
||||
"LLVMTargetParser",
|
||||
"LLVMBinaryFormat",
|
||||
] {
|
||||
println!("cargo:rustc-link-lib=static={lib}");
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user