Make TargetIsa thread-safe

This commit is contained in:
Syrus Akbary
2018-11-18 23:47:58 -08:00
committed by Dan Gohman
parent 0fed78e063
commit 48186b3199

View File

@@ -196,7 +196,7 @@ impl TargetFrontendConfig {
/// Methods that are specialized to a target ISA. Implies a Display trait that shows the /// Methods that are specialized to a target ISA. Implies a Display trait that shows the
/// shared flags, as well as any isa-specific flags. /// shared flags, as well as any isa-specific flags.
pub trait TargetIsa: fmt::Display { pub trait TargetIsa: fmt::Display + Sync {
/// Get the name of this ISA. /// Get the name of this ISA.
fn name(&self) -> &'static str; fn name(&self) -> &'static str;