mirror of
https://github.com/pezkuwichain/revive.git
synced 2026-06-18 02:21:05 +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]
|
[build-dependencies]
|
||||||
cc = { workspace = true }
|
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"));
|
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}");
|
println!("cargo:rustc-link-lib=static={lib}");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user