Revert "Use MCP510"
This reverts commit 40c3d351ad
. The option was dogfooded for using lld with MCP510 , but it broke testing with LLD, because we don't pass `-Zunstable-options` on enough places.
This commit is contained in:
parent
ec4176167b
commit
3157f2121e
@ -15,7 +15,8 @@
|
|||||||
use std::time::{Instant, SystemTime, UNIX_EPOCH};
|
use std::time::{Instant, SystemTime, UNIX_EPOCH};
|
||||||
|
|
||||||
use crate::core::builder::Builder;
|
use crate::core::builder::Builder;
|
||||||
use crate::core::config::{Config, LldMode, TargetSelection};
|
use crate::core::config::{Config, TargetSelection};
|
||||||
|
use crate::LldMode;
|
||||||
|
|
||||||
pub use crate::utils::dylib::{dylib_path, dylib_path_var};
|
pub use crate::utils::dylib::{dylib_path, dylib_path_var};
|
||||||
|
|
||||||
@ -513,16 +514,7 @@ pub fn linker_flags(
|
|||||||
) -> Vec<String> {
|
) -> Vec<String> {
|
||||||
let mut args = vec![];
|
let mut args = vec![];
|
||||||
if !builder.is_lld_direct_linker(target) && builder.config.lld_mode.is_used() {
|
if !builder.is_lld_direct_linker(target) && builder.config.lld_mode.is_used() {
|
||||||
match builder.config.lld_mode {
|
args.push(String::from("-Clink-arg=-fuse-ld=lld"));
|
||||||
LldMode::External => {
|
|
||||||
args.push("-Clinker-flavor=gnu-lld-cc".to_string());
|
|
||||||
}
|
|
||||||
LldMode::SelfContained => {
|
|
||||||
args.push("-Clinker-flavor=gnu-lld-cc".to_string());
|
|
||||||
args.push("-Clink-self-contained=+linker".to_string());
|
|
||||||
}
|
|
||||||
LldMode::Unused => {}
|
|
||||||
}
|
|
||||||
|
|
||||||
if matches!(lld_threads, LldThreads::No) {
|
if matches!(lld_threads, LldThreads::No) {
|
||||||
args.push(format!(
|
args.push(format!(
|
||||||
|
Loading…
Reference in New Issue
Block a user