mirror of
https://github.com/rizsotto/Bear.git
synced 2026-05-28 00:20:45 +02:00
Clarify comment about forcing lld linker
Updated comment to clarify reason for using lld linker. Copied from #664 @aokblast the comments should explain "why", not just what the line below is doing
This commit is contained in:
committed by
László Nagy
parent
0f72088902
commit
ead6251d57
@@ -66,7 +66,7 @@ fn main() {
|
||||
println!("cargo:rustc-cdylib-link-arg=-Wl,--version-script={}", exports_path);
|
||||
// Set rpath to look for dependencies in the same directory as the library
|
||||
println!("cargo:rustc-link-arg=-Wl,-rpath,$ORIGIN");
|
||||
// Force using lld
|
||||
// Force using lld, because GNU ld does not support multiple version tag
|
||||
// https://users.rust-lang.org/t/how-to-use-linker-version-scripts-in-rust-1-54
|
||||
println!("cargo:rustc-cdylib-link-arg=-fuse-ld=lld");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user