Rename rustc_back::target to rustc_target::spec.

This commit is contained in:
Irina Popa 2017-12-08 21:18:21 +02:00
parent 6f03b80020
commit 38e964077b
146 changed files with 171 additions and 179 deletions

34
src/Cargo.lock generated
View file

@ -1728,10 +1728,10 @@ dependencies = [
"log 0.4.1 (registry+https://github.com/rust-lang/crates.io-index)", "log 0.4.1 (registry+https://github.com/rust-lang/crates.io-index)",
"proc_macro 0.0.0", "proc_macro 0.0.0",
"rustc_apfloat 0.0.0", "rustc_apfloat 0.0.0",
"rustc_back 0.0.0",
"rustc_const_math 0.0.0", "rustc_const_math 0.0.0",
"rustc_data_structures 0.0.0", "rustc_data_structures 0.0.0",
"rustc_errors 0.0.0", "rustc_errors 0.0.0",
"rustc_target 0.0.0",
"serialize 0.0.0", "serialize 0.0.0",
"syntax 0.0.0", "syntax 0.0.0",
"syntax_pos 0.0.0", "syntax_pos 0.0.0",
@ -1818,8 +1818,8 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
name = "rustc-main" name = "rustc-main"
version = "0.0.0" version = "0.0.0"
dependencies = [ dependencies = [
"rustc_back 0.0.0",
"rustc_driver 0.0.0", "rustc_driver 0.0.0",
"rustc_target 0.0.0",
] ]
[[package]] [[package]]
@ -1857,16 +1857,6 @@ dependencies = [
"core 0.0.0", "core 0.0.0",
] ]
[[package]]
name = "rustc_back"
version = "0.0.0"
dependencies = [
"log 0.4.1 (registry+https://github.com/rust-lang/crates.io-index)",
"rand 0.4.2 (registry+https://github.com/rust-lang/crates.io-index)",
"serialize 0.0.0",
"syntax 0.0.0",
]
[[package]] [[package]]
name = "rustc_borrowck" name = "rustc_borrowck"
version = "0.0.0" version = "0.0.0"
@ -1921,7 +1911,6 @@ dependencies = [
"log 0.4.1 (registry+https://github.com/rust-lang/crates.io-index)", "log 0.4.1 (registry+https://github.com/rust-lang/crates.io-index)",
"rustc 0.0.0", "rustc 0.0.0",
"rustc_allocator 0.0.0", "rustc_allocator 0.0.0",
"rustc_back 0.0.0",
"rustc_borrowck 0.0.0", "rustc_borrowck 0.0.0",
"rustc_data_structures 0.0.0", "rustc_data_structures 0.0.0",
"rustc_errors 0.0.0", "rustc_errors 0.0.0",
@ -1934,6 +1923,7 @@ dependencies = [
"rustc_privacy 0.0.0", "rustc_privacy 0.0.0",
"rustc_resolve 0.0.0", "rustc_resolve 0.0.0",
"rustc_save_analysis 0.0.0", "rustc_save_analysis 0.0.0",
"rustc_target 0.0.0",
"rustc_traits 0.0.0", "rustc_traits 0.0.0",
"rustc_trans_utils 0.0.0", "rustc_trans_utils 0.0.0",
"rustc_typeck 0.0.0", "rustc_typeck 0.0.0",
@ -2011,9 +2001,9 @@ dependencies = [
"log 0.4.1 (registry+https://github.com/rust-lang/crates.io-index)", "log 0.4.1 (registry+https://github.com/rust-lang/crates.io-index)",
"proc_macro 0.0.0", "proc_macro 0.0.0",
"rustc 0.0.0", "rustc 0.0.0",
"rustc_back 0.0.0",
"rustc_data_structures 0.0.0", "rustc_data_structures 0.0.0",
"rustc_errors 0.0.0", "rustc_errors 0.0.0",
"rustc_target 0.0.0",
"serialize 0.0.0", "serialize 0.0.0",
"syntax 0.0.0", "syntax 0.0.0",
"syntax_ext 0.0.0", "syntax_ext 0.0.0",
@ -2032,10 +2022,10 @@ dependencies = [
"log_settings 0.1.1 (registry+https://github.com/rust-lang/crates.io-index)", "log_settings 0.1.1 (registry+https://github.com/rust-lang/crates.io-index)",
"rustc 0.0.0", "rustc 0.0.0",
"rustc_apfloat 0.0.0", "rustc_apfloat 0.0.0",
"rustc_back 0.0.0",
"rustc_const_math 0.0.0", "rustc_const_math 0.0.0",
"rustc_data_structures 0.0.0", "rustc_data_structures 0.0.0",
"rustc_errors 0.0.0", "rustc_errors 0.0.0",
"rustc_target 0.0.0",
"serialize 0.0.0", "serialize 0.0.0",
"syntax 0.0.0", "syntax 0.0.0",
"syntax_pos 0.0.0", "syntax_pos 0.0.0",
@ -2121,6 +2111,16 @@ dependencies = [
"syntax_pos 0.0.0", "syntax_pos 0.0.0",
] ]
[[package]]
name = "rustc_target"
version = "0.0.0"
dependencies = [
"log 0.4.1 (registry+https://github.com/rust-lang/crates.io-index)",
"rand 0.4.2 (registry+https://github.com/rust-lang/crates.io-index)",
"serialize 0.0.0",
"syntax 0.0.0",
]
[[package]] [[package]]
name = "rustc_traits" name = "rustc_traits"
version = "0.0.0" version = "0.0.0"
@ -2150,7 +2150,6 @@ dependencies = [
"rustc-demangle 0.1.7 (registry+https://github.com/rust-lang/crates.io-index)", "rustc-demangle 0.1.7 (registry+https://github.com/rust-lang/crates.io-index)",
"rustc_allocator 0.0.0", "rustc_allocator 0.0.0",
"rustc_apfloat 0.0.0", "rustc_apfloat 0.0.0",
"rustc_back 0.0.0",
"rustc_const_math 0.0.0", "rustc_const_math 0.0.0",
"rustc_data_structures 0.0.0", "rustc_data_structures 0.0.0",
"rustc_errors 0.0.0", "rustc_errors 0.0.0",
@ -2158,6 +2157,7 @@ dependencies = [
"rustc_llvm 0.0.0", "rustc_llvm 0.0.0",
"rustc_mir 0.0.0", "rustc_mir 0.0.0",
"rustc_platform_intrinsics 0.0.0", "rustc_platform_intrinsics 0.0.0",
"rustc_target 0.0.0",
"rustc_trans_utils 0.0.0", "rustc_trans_utils 0.0.0",
"serialize 0.0.0", "serialize 0.0.0",
"syntax 0.0.0", "syntax 0.0.0",
@ -2173,10 +2173,10 @@ dependencies = [
"flate2 1.0.1 (registry+https://github.com/rust-lang/crates.io-index)", "flate2 1.0.1 (registry+https://github.com/rust-lang/crates.io-index)",
"log 0.4.1 (registry+https://github.com/rust-lang/crates.io-index)", "log 0.4.1 (registry+https://github.com/rust-lang/crates.io-index)",
"rustc 0.0.0", "rustc 0.0.0",
"rustc_back 0.0.0",
"rustc_data_structures 0.0.0", "rustc_data_structures 0.0.0",
"rustc_incremental 0.0.0", "rustc_incremental 0.0.0",
"rustc_mir 0.0.0", "rustc_mir 0.0.0",
"rustc_target 0.0.0",
"syntax 0.0.0", "syntax 0.0.0",
"syntax_pos 0.0.0", "syntax_pos 0.0.0",
] ]

View file

@ -18,7 +18,7 @@ lazy_static = "1.0.0"
log = { version = "0.4", features = ["release_max_level_info", "std"] } log = { version = "0.4", features = ["release_max_level_info", "std"] }
proc_macro = { path = "../libproc_macro" } proc_macro = { path = "../libproc_macro" }
rustc_apfloat = { path = "../librustc_apfloat" } rustc_apfloat = { path = "../librustc_apfloat" }
rustc_back = { path = "../librustc_back" } rustc_target = { path = "../librustc_target" }
rustc_const_math = { path = "../librustc_const_math" } rustc_const_math = { path = "../librustc_const_math" }
rustc_data_structures = { path = "../librustc_data_structures" } rustc_data_structures = { path = "../librustc_data_structures" }
rustc_errors = { path = "../librustc_errors" } rustc_errors = { path = "../librustc_errors" }

View file

@ -20,7 +20,7 @@ impl_stable_hash_for!(enum ::session::search_paths::PathKind {
All All
}); });
impl_stable_hash_for!(enum ::rustc_back::target::PanicStrategy { impl_stable_hash_for!(enum ::rustc_target::spec::PanicStrategy {
Abort, Abort,
Unwind Unwind
}); });

View file

@ -81,7 +81,7 @@ extern crate graphviz;
#[macro_use] extern crate lazy_static; #[macro_use] extern crate lazy_static;
#[cfg(windows)] #[cfg(windows)]
extern crate libc; extern crate libc;
extern crate rustc_back; extern crate rustc_target;
#[macro_use] extern crate rustc_data_structures; #[macro_use] extern crate rustc_data_structures;
extern crate serialize; extern crate serialize;
extern crate rustc_const_math; extern crate rustc_const_math;

View file

@ -37,7 +37,7 @@ use syntax::ast;
use syntax::ext::base::SyntaxExtension; use syntax::ext::base::SyntaxExtension;
use syntax::symbol::Symbol; use syntax::symbol::Symbol;
use syntax_pos::Span; use syntax_pos::Span;
use rustc_back::target::Target; use rustc_target::spec::Target;
use rustc_data_structures::sync::{MetadataRef, Lrc}; use rustc_data_structures::sync::{MetadataRef, Lrc};
pub use self::NativeLibraryKind::*; pub use self::NativeLibraryKind::*;

View file

@ -69,7 +69,7 @@ use ty::TyCtxt;
use middle::cstore::{self, DepKind}; use middle::cstore::{self, DepKind};
use middle::cstore::LinkagePreference::{self, RequireStatic, RequireDynamic}; use middle::cstore::LinkagePreference::{self, RequireStatic, RequireDynamic};
use util::nodemap::FxHashMap; use util::nodemap::FxHashMap;
use rustc_back::target::PanicStrategy; use rustc_target::spec::PanicStrategy;
/// A list of dependencies for a certain crate type. /// A list of dependencies for a certain crate type.
/// ///

View file

@ -13,7 +13,7 @@
use session::config; use session::config;
use middle::lang_items; use middle::lang_items;
use rustc_back::target::PanicStrategy; use rustc_target::spec::PanicStrategy;
use syntax::ast; use syntax::ast;
use syntax::symbol::Symbol; use syntax::symbol::Symbol;
use syntax_pos::Span; use syntax_pos::Span;

View file

@ -22,8 +22,8 @@ use session::{early_error, early_warn, Session};
use session::search_paths::SearchPaths; use session::search_paths::SearchPaths;
use ich::StableHashingContext; use ich::StableHashingContext;
use rustc_back::target::{LinkerFlavor, PanicStrategy, RelroLevel}; use rustc_target::spec::{LinkerFlavor, PanicStrategy, RelroLevel};
use rustc_back::target::{Target, TargetTriple}; use rustc_target::spec::{Target, TargetTriple};
use rustc_data_structures::stable_hasher::ToStableHashKey; use rustc_data_structures::stable_hasher::ToStableHashKey;
use lint; use lint;
use middle::cstore; use middle::cstore;
@ -770,7 +770,7 @@ macro_rules! options {
pub const parse_sanitizer: Option<&'static str> = pub const parse_sanitizer: Option<&'static str> =
Some("one of: `address`, `leak`, `memory` or `thread`"); Some("one of: `address`, `leak`, `memory` or `thread`");
pub const parse_linker_flavor: Option<&'static str> = pub const parse_linker_flavor: Option<&'static str> =
Some(::rustc_back::target::LinkerFlavor::one_of()); Some(::rustc_target::spec::LinkerFlavor::one_of());
pub const parse_optimization_fuel: Option<&'static str> = pub const parse_optimization_fuel: Option<&'static str> =
Some("crate=integer"); Some("crate=integer");
pub const parse_unpretty: Option<&'static str> = pub const parse_unpretty: Option<&'static str> =
@ -782,7 +782,7 @@ macro_rules! options {
#[allow(dead_code)] #[allow(dead_code)]
mod $mod_set { mod $mod_set {
use super::{$struct_name, Passes, SomePasses, AllPasses, Sanitizer, Lto}; use super::{$struct_name, Passes, SomePasses, AllPasses, Sanitizer, Lto};
use rustc_back::target::{LinkerFlavor, PanicStrategy, RelroLevel}; use rustc_target::spec::{LinkerFlavor, PanicStrategy, RelroLevel};
use std::path::PathBuf; use std::path::PathBuf;
$( $(
@ -2323,8 +2323,7 @@ mod dep_tracking {
use super::{CrateType, DebugInfoLevel, ErrorOutputType, Lto, OptLevel, OutputTypes, use super::{CrateType, DebugInfoLevel, ErrorOutputType, Lto, OptLevel, OutputTypes,
Passes, Sanitizer}; Passes, Sanitizer};
use syntax::feature_gate::UnstableFeatures; use syntax::feature_gate::UnstableFeatures;
use rustc_back::target::{PanicStrategy, RelroLevel}; use rustc_target::spec::{PanicStrategy, RelroLevel, TargetTriple};
use rustc_back::target::TargetTriple;
use syntax::edition::Edition; use syntax::edition::Edition;
pub trait DepTrackingHash { pub trait DepTrackingHash {
@ -2456,7 +2455,7 @@ mod tests {
use std::iter::FromIterator; use std::iter::FromIterator;
use std::path::PathBuf; use std::path::PathBuf;
use super::{Externs, OutputType, OutputTypes}; use super::{Externs, OutputType, OutputTypes};
use rustc_back::target::{PanicStrategy, RelroLevel}; use rustc_target::spec::{PanicStrategy, RelroLevel};
use syntax::symbol::Symbol; use syntax::symbol::Symbol;
use syntax::edition::{Edition, DEFAULT_EDITION}; use syntax::edition::{Edition, DEFAULT_EDITION};
use syntax; use syntax;

View file

@ -41,8 +41,8 @@ use syntax::{ast, codemap};
use syntax::feature_gate::AttributeType; use syntax::feature_gate::AttributeType;
use syntax_pos::{MultiSpan, Span}; use syntax_pos::{MultiSpan, Span};
use rustc_back::target::{LinkerFlavor, PanicStrategy}; use rustc_target::spec::{LinkerFlavor, PanicStrategy};
use rustc_back::target::{Target, TargetTriple}; use rustc_target::spec::{Target, TargetTriple};
use rustc_data_structures::flock; use rustc_data_structures::flock;
use jobserver::Client; use jobserver::Client;

View file

@ -45,7 +45,7 @@ use util::nodemap::{DefIdSet, DefIdMap, ItemLocalSet};
use util::common::{profq_msg, ErrorReported, ProfileQueriesMsg}; use util::common::{profq_msg, ErrorReported, ProfileQueriesMsg};
use rustc_data_structures::indexed_set::IdxSetBuf; use rustc_data_structures::indexed_set::IdxSetBuf;
use rustc_back::target::PanicStrategy; use rustc_target::spec::PanicStrategy;
use rustc_data_structures::indexed_vec::IndexVec; use rustc_data_structures::indexed_vec::IndexVec;
use rustc_data_structures::fx::{FxHashMap, FxHashSet}; use rustc_data_structures::fx::{FxHashMap, FxHashSet};
use rustc_data_structures::stable_hasher::StableVec; use rustc_data_structures::stable_hasher::StableVec;

View file

@ -1,6 +0,0 @@
`librustc_back` contains some very low-level details that are
specific to different LLVM targets and so forth.
For more information about how trans works, see the [rustc guide].
[rustc guide]: https://rust-lang-nursery.github.io/rustc-guide/trans.html

View file

@ -15,7 +15,7 @@ log = "0.4"
env_logger = { version = "0.5", default-features = false } env_logger = { version = "0.5", default-features = false }
rustc = { path = "../librustc" } rustc = { path = "../librustc" }
rustc_allocator = { path = "../librustc_allocator" } rustc_allocator = { path = "../librustc_allocator" }
rustc_back = { path = "../librustc_back" } rustc_target = { path = "../librustc_target" }
rustc_borrowck = { path = "../librustc_borrowck" } rustc_borrowck = { path = "../librustc_borrowck" }
rustc_data_structures = { path = "../librustc_data_structures" } rustc_data_structures = { path = "../librustc_data_structures" }
rustc_errors = { path = "../librustc_errors" } rustc_errors = { path = "../librustc_errors" }

View file

@ -35,7 +35,7 @@ extern crate env_logger;
extern crate libc; extern crate libc;
extern crate rustc; extern crate rustc;
extern crate rustc_allocator; extern crate rustc_allocator;
extern crate rustc_back; extern crate rustc_target;
extern crate rustc_borrowck; extern crate rustc_borrowck;
extern crate rustc_data_structures; extern crate rustc_data_structures;
extern crate rustc_errors as errors; extern crate rustc_errors as errors;
@ -1021,7 +1021,7 @@ impl RustcDefaultCalls {
for req in &sess.opts.prints { for req in &sess.opts.prints {
match *req { match *req {
TargetList => { TargetList => {
let mut targets = rustc_back::target::get_targets().collect::<Vec<String>>(); let mut targets = rustc_target::spec::get_targets().collect::<Vec<String>>();
targets.sort(); targets.sort();
println!("{}", targets.join("\n")); println!("{}", targets.join("\n"));
}, },

View file

@ -13,7 +13,7 @@ flate2 = "1.0"
log = "0.4" log = "0.4"
proc_macro = { path = "../libproc_macro" } proc_macro = { path = "../libproc_macro" }
rustc = { path = "../librustc" } rustc = { path = "../librustc" }
rustc_back = { path = "../librustc_back" } rustc_target = { path = "../librustc_target" }
rustc_data_structures = { path = "../librustc_data_structures" } rustc_data_structures = { path = "../librustc_data_structures" }
rustc_errors = { path = "../librustc_errors" } rustc_errors = { path = "../librustc_errors" }
serialize = { path = "../libserialize" } serialize = { path = "../libserialize" }

View file

@ -21,8 +21,7 @@ use rustc::middle::allocator::AllocatorKind;
use rustc::middle::cstore::DepKind; use rustc::middle::cstore::DepKind;
use rustc::session::{Session, CrateDisambiguator}; use rustc::session::{Session, CrateDisambiguator};
use rustc::session::config::{Sanitizer, self}; use rustc::session::config::{Sanitizer, self};
use rustc_back::target::PanicStrategy; use rustc_target::spec::{PanicStrategy, TargetTriple};
use rustc_back::target::TargetTriple;
use rustc::session::search_paths::PathKind; use rustc::session::search_paths::PathKind;
use rustc::middle; use rustc::middle;
use rustc::middle::cstore::{validate_crate_name, ExternCrate, ExternCrateSource}; use rustc::middle::cstore::{validate_crate_name, ExternCrate, ExternCrateSource};

View file

@ -18,7 +18,7 @@ use rustc::hir::map::definitions::DefPathTable;
use rustc::hir::svh::Svh; use rustc::hir::svh::Svh;
use rustc::middle::cstore::{DepKind, ExternCrate, MetadataLoader}; use rustc::middle::cstore::{DepKind, ExternCrate, MetadataLoader};
use rustc::session::{Session, CrateDisambiguator}; use rustc::session::{Session, CrateDisambiguator};
use rustc_back::target::PanicStrategy; use rustc_target::spec::PanicStrategy;
use rustc_data_structures::indexed_vec::IndexVec; use rustc_data_structures::indexed_vec::IndexVec;
use rustc::util::nodemap::{FxHashMap, NodeMap}; use rustc::util::nodemap::{FxHashMap, NodeMap};

View file

@ -38,7 +38,7 @@ extern crate proc_macro;
#[macro_use] #[macro_use]
extern crate rustc; extern crate rustc;
extern crate rustc_back; extern crate rustc_target;
#[macro_use] #[macro_use]
extern crate rustc_data_structures; extern crate rustc_data_structures;

View file

@ -236,7 +236,7 @@ use rustc::util::nodemap::FxHashMap;
use errors::DiagnosticBuilder; use errors::DiagnosticBuilder;
use syntax::symbol::Symbol; use syntax::symbol::Symbol;
use syntax_pos::Span; use syntax_pos::Span;
use rustc_back::target::{Target, TargetTriple}; use rustc_target::spec::{Target, TargetTriple};
use std::cmp; use std::cmp;
use std::collections::HashSet; use std::collections::HashSet;

View file

@ -19,8 +19,7 @@ use rustc::middle::lang_items;
use rustc::mir; use rustc::mir;
use rustc::session::CrateDisambiguator; use rustc::session::CrateDisambiguator;
use rustc::ty::{self, Ty, ReprOptions}; use rustc::ty::{self, Ty, ReprOptions};
use rustc_back::target::PanicStrategy; use rustc_target::spec::{PanicStrategy, TargetTriple};
use rustc_back::target::TargetTriple;
use rustc_serialize as serialize; use rustc_serialize as serialize;
use syntax::{ast, attr}; use syntax::{ast, attr};

View file

@ -15,7 +15,7 @@ graphviz = { path = "../libgraphviz" }
log = "0.4" log = "0.4"
log_settings = "0.1.1" log_settings = "0.1.1"
rustc = { path = "../librustc" } rustc = { path = "../librustc" }
rustc_back = { path = "../librustc_back" } rustc_target = { path = "../librustc_target" }
rustc_const_math = { path = "../librustc_const_math" } rustc_const_math = { path = "../librustc_const_math" }
rustc_data_structures = { path = "../librustc_data_structures" } rustc_data_structures = { path = "../librustc_data_structures" }
rustc_errors = { path = "../librustc_errors" } rustc_errors = { path = "../librustc_errors" }

View file

@ -20,7 +20,7 @@ use rustc::mir::visit::{MutVisitor, TyContext};
use rustc::ty::{self, Ty, TyCtxt}; use rustc::ty::{self, Ty, TyCtxt};
use rustc::ty::subst::Substs; use rustc::ty::subst::Substs;
use rustc::util::nodemap::NodeMap; use rustc::util::nodemap::NodeMap;
use rustc_back::target::PanicStrategy; use rustc_target::spec::PanicStrategy;
use rustc_data_structures::indexed_vec::{IndexVec, Idx}; use rustc_data_structures::indexed_vec::{IndexVec, Idx};
use shim; use shim;
use std::mem; use std::mem;

View file

@ -49,7 +49,7 @@ extern crate rustc_errors;
#[macro_use] #[macro_use]
extern crate syntax; extern crate syntax;
extern crate syntax_pos; extern crate syntax_pos;
extern crate rustc_back; extern crate rustc_target;
extern crate rustc_const_math; extern crate rustc_const_math;
extern crate core; // for NonZero extern crate core; // for NonZero
extern crate log_settings; extern crate log_settings;

View file

@ -1,10 +1,10 @@
[package] [package]
authors = ["The Rust Project Developers"] authors = ["The Rust Project Developers"]
name = "rustc_back" name = "rustc_target"
version = "0.0.0" version = "0.0.0"
[lib] [lib]
name = "rustc_back" name = "rustc_target"
path = "lib.rs" path = "lib.rs"
crate-type = ["dylib"] crate-type = ["dylib"]

View file

@ -0,0 +1,6 @@
`librustc_target` contains some very low-level details that are
specific to different compilation targets and so forth.
For more information about how rustc works, see the [rustc guide].
[rustc guide]: https://rust-lang-nursery.github.io/rustc-guide/

View file

@ -11,7 +11,7 @@
//! Some stuff used by rustc that doesn't have many dependencies //! Some stuff used by rustc that doesn't have many dependencies
//! //!
//! Originally extracted from rustc::back, which was nominally the //! Originally extracted from rustc::back, which was nominally the
//! compiler 'backend', though LLVM is rustc's backend, so rustc_back //! compiler 'backend', though LLVM is rustc's backend, so rustc_target
//! is really just odds-and-ends relating to code gen and linking. //! is really just odds-and-ends relating to code gen and linking.
//! This crate mostly exists to make rustc smaller, so we might put //! This crate mostly exists to make rustc smaller, so we might put
//! more 'stuff' here in the future. It does not have a dependency on //! more 'stuff' here in the future. It does not have a dependency on
@ -36,4 +36,4 @@ extern crate serialize;
extern crate serialize as rustc_serialize; // used by deriving extern crate serialize as rustc_serialize; // used by deriving
pub mod target; pub mod spec;

View file

@ -8,7 +8,7 @@
// option. This file may not be copied, modified, or distributed // option. This file may not be copied, modified, or distributed
// except according to those terms. // except according to those terms.
use target::{LinkerFlavor, Target, TargetOptions, TargetResult}; use spec::{LinkerFlavor, Target, TargetOptions, TargetResult};
use super::apple_ios_base::{opts, Arch}; use super::apple_ios_base::{opts, Arch};
pub fn target() -> TargetResult { pub fn target() -> TargetResult {

View file

@ -8,7 +8,7 @@
// option. This file may not be copied, modified, or distributed // option. This file may not be copied, modified, or distributed
// except according to those terms. // except according to those terms.
use target::{LinkerFlavor, Target, TargetOptions, TargetResult}; use spec::{LinkerFlavor, Target, TargetOptions, TargetResult};
// See https://developer.android.com/ndk/guides/abis.html#arm64-v8a // See https://developer.android.com/ndk/guides/abis.html#arm64-v8a
// for target ABI requirements. // for target ABI requirements.

View file

@ -8,7 +8,7 @@
// option. This file may not be copied, modified, or distributed // option. This file may not be copied, modified, or distributed
// except according to those terms. // except according to those terms.
use target::{LinkerFlavor, Target, TargetResult}; use spec::{LinkerFlavor, Target, TargetResult};
pub fn target() -> TargetResult { pub fn target() -> TargetResult {
let mut base = super::cloudabi_base::opts(); let mut base = super::cloudabi_base::opts();

View file

@ -8,7 +8,7 @@
// option. This file may not be copied, modified, or distributed // option. This file may not be copied, modified, or distributed
// except according to those terms. // except according to those terms.
use target::{LinkerFlavor, Target, TargetOptions, TargetResult}; use spec::{LinkerFlavor, Target, TargetOptions, TargetResult};
pub fn target() -> TargetResult { pub fn target() -> TargetResult {
let mut base = super::freebsd_base::opts(); let mut base = super::freebsd_base::opts();

View file

@ -8,7 +8,7 @@
// option. This file may not be copied, modified, or distributed // option. This file may not be copied, modified, or distributed
// except according to those terms. // except according to those terms.
use target::{LinkerFlavor, Target, TargetOptions, TargetResult}; use spec::{LinkerFlavor, Target, TargetOptions, TargetResult};
pub fn target() -> TargetResult { pub fn target() -> TargetResult {
let mut base = super::fuchsia_base::opts(); let mut base = super::fuchsia_base::opts();

View file

@ -8,7 +8,7 @@
// option. This file may not be copied, modified, or distributed // option. This file may not be copied, modified, or distributed
// except according to those terms. // except according to those terms.
use target::{LinkerFlavor, Target, TargetOptions, TargetResult}; use spec::{LinkerFlavor, Target, TargetOptions, TargetResult};
pub fn target() -> TargetResult { pub fn target() -> TargetResult {
let mut base = super::linux_base::opts(); let mut base = super::linux_base::opts();

View file

@ -8,7 +8,7 @@
// option. This file may not be copied, modified, or distributed // option. This file may not be copied, modified, or distributed
// except according to those terms. // except according to those terms.
use target::{LinkerFlavor, Target, TargetOptions, TargetResult}; use spec::{LinkerFlavor, Target, TargetOptions, TargetResult};
pub fn target() -> TargetResult { pub fn target() -> TargetResult {
let mut base = super::linux_musl_base::opts(); let mut base = super::linux_musl_base::opts();

View file

@ -8,7 +8,7 @@
// option. This file may not be copied, modified, or distributed // option. This file may not be copied, modified, or distributed
// except according to those terms. // except according to those terms.
use target::{LinkerFlavor, TargetOptions}; use spec::{LinkerFlavor, TargetOptions};
pub fn opts() -> TargetOptions { pub fn opts() -> TargetOptions {
let mut base = super::linux_base::opts(); let mut base = super::linux_base::opts();

View file

@ -10,7 +10,7 @@
use std::env; use std::env;
use target::{LinkArgs, TargetOptions}; use spec::{LinkArgs, TargetOptions};
pub fn opts() -> TargetOptions { pub fn opts() -> TargetOptions {
// ELF TLS is only available in macOS 10.7+. If you try to compile for 10.6 // ELF TLS is only available in macOS 10.7+. If you try to compile for 10.6

View file

@ -10,7 +10,7 @@
use std::io; use std::io;
use std::process::Command; use std::process::Command;
use target::{LinkArgs, LinkerFlavor, TargetOptions}; use spec::{LinkArgs, LinkerFlavor, TargetOptions};
use self::Arch::*; use self::Arch::*;

View file

@ -8,7 +8,7 @@
// option. This file may not be copied, modified, or distributed // option. This file may not be copied, modified, or distributed
// except according to those terms. // except according to those terms.
use target::{LinkerFlavor, Target, TargetOptions, TargetResult}; use spec::{LinkerFlavor, Target, TargetOptions, TargetResult};
pub fn target() -> TargetResult { pub fn target() -> TargetResult {
let mut base = super::android_base::opts(); let mut base = super::android_base::opts();

View file

@ -8,7 +8,7 @@
// option. This file may not be copied, modified, or distributed // option. This file may not be copied, modified, or distributed
// except according to those terms. // except according to those terms.
use target::{LinkerFlavor, Target, TargetOptions, TargetResult}; use spec::{LinkerFlavor, Target, TargetOptions, TargetResult};
pub fn target() -> TargetResult { pub fn target() -> TargetResult {
let mut base = super::linux_base::opts(); let mut base = super::linux_base::opts();

View file

@ -8,7 +8,7 @@
// option. This file may not be copied, modified, or distributed // option. This file may not be copied, modified, or distributed
// except according to those terms. // except according to those terms.
use target::{LinkerFlavor, Target, TargetOptions, TargetResult}; use spec::{LinkerFlavor, Target, TargetOptions, TargetResult};
pub fn target() -> TargetResult { pub fn target() -> TargetResult {
let mut base = super::linux_base::opts(); let mut base = super::linux_base::opts();

View file

@ -8,7 +8,7 @@
// option. This file may not be copied, modified, or distributed // option. This file may not be copied, modified, or distributed
// except according to those terms. // except according to those terms.
use target::{LinkerFlavor, Target, TargetOptions, TargetResult}; use spec::{LinkerFlavor, Target, TargetOptions, TargetResult};
pub fn target() -> TargetResult { pub fn target() -> TargetResult {
let mut base = super::linux_musl_base::opts(); let mut base = super::linux_musl_base::opts();

View file

@ -8,7 +8,7 @@
// option. This file may not be copied, modified, or distributed // option. This file may not be copied, modified, or distributed
// except according to those terms. // except according to those terms.
use target::{LinkerFlavor, Target, TargetOptions, TargetResult}; use spec::{LinkerFlavor, Target, TargetOptions, TargetResult};
pub fn target() -> TargetResult { pub fn target() -> TargetResult {
let mut base = super::linux_musl_base::opts(); let mut base = super::linux_musl_base::opts();

View file

@ -8,7 +8,7 @@
// option. This file may not be copied, modified, or distributed // option. This file may not be copied, modified, or distributed
// except according to those terms. // except according to those terms.
use target::{LinkerFlavor, Target, TargetOptions, TargetResult}; use spec::{LinkerFlavor, Target, TargetOptions, TargetResult};
pub fn target() -> TargetResult { pub fn target() -> TargetResult {
let base = super::linux_base::opts(); let base = super::linux_base::opts();

View file

@ -8,7 +8,7 @@
// option. This file may not be copied, modified, or distributed // option. This file may not be copied, modified, or distributed
// except according to those terms. // except according to those terms.
use target::{LinkerFlavor, Target, TargetOptions, TargetResult}; use spec::{LinkerFlavor, Target, TargetOptions, TargetResult};
pub fn target() -> TargetResult { pub fn target() -> TargetResult {
let base = super::linux_base::opts(); let base = super::linux_base::opts();

View file

@ -8,7 +8,7 @@
// option. This file may not be copied, modified, or distributed // option. This file may not be copied, modified, or distributed
// except according to those terms. // except according to those terms.
use target::{LinkerFlavor, Target, TargetOptions, TargetResult}; use spec::{LinkerFlavor, Target, TargetOptions, TargetResult};
use super::apple_ios_base::{opts, Arch}; use super::apple_ios_base::{opts, Arch};
pub fn target() -> TargetResult { pub fn target() -> TargetResult {

View file

@ -8,7 +8,7 @@
// option. This file may not be copied, modified, or distributed // option. This file may not be copied, modified, or distributed
// except according to those terms. // except according to those terms.
use target::{LinkerFlavor, Target, TargetOptions, TargetResult}; use spec::{LinkerFlavor, Target, TargetOptions, TargetResult};
// See https://developer.android.com/ndk/guides/abis.html#v7a // See https://developer.android.com/ndk/guides/abis.html#v7a
// for target ABI requirements. // for target ABI requirements.

View file

@ -8,7 +8,7 @@
// option. This file may not be copied, modified, or distributed // option. This file may not be copied, modified, or distributed
// except according to those terms. // except according to those terms.
use target::{LinkerFlavor, Target, TargetResult}; use spec::{LinkerFlavor, Target, TargetResult};
pub fn target() -> TargetResult { pub fn target() -> TargetResult {
let mut base = super::cloudabi_base::opts(); let mut base = super::cloudabi_base::opts();

View file

@ -8,7 +8,7 @@
// option. This file may not be copied, modified, or distributed // option. This file may not be copied, modified, or distributed
// except according to those terms. // except according to those terms.
use target::{LinkerFlavor, Target, TargetOptions, TargetResult}; use spec::{LinkerFlavor, Target, TargetOptions, TargetResult};
pub fn target() -> TargetResult { pub fn target() -> TargetResult {
let base = super::linux_base::opts(); let base = super::linux_base::opts();

View file

@ -8,7 +8,7 @@
// option. This file may not be copied, modified, or distributed // option. This file may not be copied, modified, or distributed
// except according to those terms. // except according to those terms.
use target::{LinkerFlavor, Target, TargetOptions, TargetResult}; use spec::{LinkerFlavor, Target, TargetOptions, TargetResult};
pub fn target() -> TargetResult { pub fn target() -> TargetResult {
let base = super::linux_musl_base::opts(); let base = super::linux_musl_base::opts();

View file

@ -8,7 +8,7 @@
// option. This file may not be copied, modified, or distributed // option. This file may not be copied, modified, or distributed
// except according to those terms. // except according to those terms.
use target::{LinkerFlavor, Target, TargetOptions, TargetResult}; use spec::{LinkerFlavor, Target, TargetOptions, TargetResult};
use super::apple_ios_base::{opts, Arch}; use super::apple_ios_base::{opts, Arch};
pub fn target() -> TargetResult { pub fn target() -> TargetResult {

View file

@ -8,7 +8,7 @@
// option. This file may not be copied, modified, or distributed // option. This file may not be copied, modified, or distributed
// except according to those terms. // except according to those terms.
use target::{TargetOptions, RelroLevel}; use spec::{TargetOptions, RelroLevel};
use std::default::Default; use std::default::Default;
pub fn opts() -> TargetOptions { pub fn opts() -> TargetOptions {

View file

@ -8,7 +8,7 @@
// option. This file may not be copied, modified, or distributed // option. This file may not be copied, modified, or distributed
// except according to those terms. // except according to those terms.
use target::{LinkArgs, LinkerFlavor, TargetOptions, RelroLevel}; use spec::{LinkArgs, LinkerFlavor, TargetOptions, RelroLevel};
pub fn opts() -> TargetOptions { pub fn opts() -> TargetOptions {
let mut args = LinkArgs::new(); let mut args = LinkArgs::new();

View file

@ -8,7 +8,7 @@
// option. This file may not be copied, modified, or distributed // option. This file may not be copied, modified, or distributed
// except according to those terms. // except according to those terms.
use target::{LinkArgs, LinkerFlavor, TargetOptions, RelroLevel}; use spec::{LinkArgs, LinkerFlavor, TargetOptions, RelroLevel};
use std::default::Default; use std::default::Default;
pub fn opts() -> TargetOptions { pub fn opts() -> TargetOptions {

View file

@ -8,7 +8,7 @@
// option. This file may not be copied, modified, or distributed // option. This file may not be copied, modified, or distributed
// except according to those terms. // except according to those terms.
use target::{LinkArgs, LinkerFlavor, TargetOptions, RelroLevel}; use spec::{LinkArgs, LinkerFlavor, TargetOptions, RelroLevel};
use std::default::Default; use std::default::Default;
pub fn opts() -> TargetOptions { pub fn opts() -> TargetOptions {

View file

@ -8,7 +8,7 @@
// option. This file may not be copied, modified, or distributed // option. This file may not be copied, modified, or distributed
// except according to those terms. // except according to those terms.
use target::{LinkArgs, LinkerFlavor, TargetOptions}; use spec::{LinkArgs, LinkerFlavor, TargetOptions};
use std::default::Default; use std::default::Default;
pub fn opts() -> TargetOptions { pub fn opts() -> TargetOptions {

View file

@ -8,7 +8,7 @@
// option. This file may not be copied, modified, or distributed // option. This file may not be copied, modified, or distributed
// except according to those terms. // except according to those terms.
use target::{TargetOptions, RelroLevel}; use spec::{TargetOptions, RelroLevel};
use std::default::Default; use std::default::Default;
pub fn opts() -> TargetOptions { pub fn opts() -> TargetOptions {

View file

@ -8,7 +8,7 @@
// option. This file may not be copied, modified, or distributed // option. This file may not be copied, modified, or distributed
// except according to those terms. // except according to those terms.
use target::{LinkerFlavor, Target, TargetOptions, TargetResult}; use spec::{LinkerFlavor, Target, TargetOptions, TargetResult};
use super::apple_ios_base::{opts, Arch}; use super::apple_ios_base::{opts, Arch};
pub fn target() -> TargetResult { pub fn target() -> TargetResult {

View file

@ -8,7 +8,7 @@
// option. This file may not be copied, modified, or distributed // option. This file may not be copied, modified, or distributed
// except according to those terms. // except according to those terms.
use target::TargetResult; use spec::TargetResult;
pub fn target() -> TargetResult { pub fn target() -> TargetResult {
let mut base = super::i686_pc_windows_msvc::target()?; let mut base = super::i686_pc_windows_msvc::target()?;

View file

@ -8,7 +8,7 @@
// option. This file may not be copied, modified, or distributed // option. This file may not be copied, modified, or distributed
// except according to those terms. // except according to those terms.
use target::TargetResult; use spec::TargetResult;
pub fn target() -> TargetResult { pub fn target() -> TargetResult {
let mut base = super::i686_unknown_linux_gnu::target()?; let mut base = super::i686_unknown_linux_gnu::target()?;

View file

@ -8,7 +8,7 @@
// option. This file may not be copied, modified, or distributed // option. This file may not be copied, modified, or distributed
// except according to those terms. // except according to those terms.
use target::TargetResult; use spec::TargetResult;
pub fn target() -> TargetResult { pub fn target() -> TargetResult {
let mut base = super::i686_unknown_linux_musl::target()?; let mut base = super::i686_unknown_linux_musl::target()?;

View file

@ -8,7 +8,7 @@
// option. This file may not be copied, modified, or distributed // option. This file may not be copied, modified, or distributed
// except according to those terms. // except according to those terms.
use target::{LinkerFlavor, Target, TargetResult}; use spec::{LinkerFlavor, Target, TargetResult};
pub fn target() -> TargetResult { pub fn target() -> TargetResult {
let mut base = super::apple_base::opts(); let mut base = super::apple_base::opts();

View file

@ -8,7 +8,7 @@
// option. This file may not be copied, modified, or distributed // option. This file may not be copied, modified, or distributed
// except according to those terms. // except according to those terms.
use target::{LinkerFlavor, Target, TargetResult}; use spec::{LinkerFlavor, Target, TargetResult};
// See https://developer.android.com/ndk/guides/abis.html#x86 // See https://developer.android.com/ndk/guides/abis.html#x86
// for target ABI requirements. // for target ABI requirements.

View file

@ -8,7 +8,7 @@
// option. This file may not be copied, modified, or distributed // option. This file may not be copied, modified, or distributed
// except according to those terms. // except according to those terms.
use target::{LinkerFlavor, Target, TargetResult}; use spec::{LinkerFlavor, Target, TargetResult};
pub fn target() -> TargetResult { pub fn target() -> TargetResult {
let mut base = super::windows_base::opts(); let mut base = super::windows_base::opts();

View file

@ -8,7 +8,7 @@
// option. This file may not be copied, modified, or distributed // option. This file may not be copied, modified, or distributed
// except according to those terms. // except according to those terms.
use target::{LinkerFlavor, Target, TargetResult}; use spec::{LinkerFlavor, Target, TargetResult};
pub fn target() -> TargetResult { pub fn target() -> TargetResult {
let mut base = super::windows_msvc_base::opts(); let mut base = super::windows_msvc_base::opts();

View file

@ -8,7 +8,7 @@
// option. This file may not be copied, modified, or distributed // option. This file may not be copied, modified, or distributed
// except according to those terms. // except according to those terms.
use target::{LinkerFlavor, Target, TargetResult}; use spec::{LinkerFlavor, Target, TargetResult};
pub fn target() -> TargetResult { pub fn target() -> TargetResult {
let mut base = super::cloudabi_base::opts(); let mut base = super::cloudabi_base::opts();

View file

@ -8,7 +8,7 @@
// option. This file may not be copied, modified, or distributed // option. This file may not be copied, modified, or distributed
// except according to those terms. // except according to those terms.
use target::{LinkerFlavor, Target, TargetResult}; use spec::{LinkerFlavor, Target, TargetResult};
pub fn target() -> TargetResult { pub fn target() -> TargetResult {
let mut base = super::dragonfly_base::opts(); let mut base = super::dragonfly_base::opts();

View file

@ -8,7 +8,7 @@
// option. This file may not be copied, modified, or distributed // option. This file may not be copied, modified, or distributed
// except according to those terms. // except according to those terms.
use target::{LinkerFlavor, Target, TargetResult}; use spec::{LinkerFlavor, Target, TargetResult};
pub fn target() -> TargetResult { pub fn target() -> TargetResult {
let mut base = super::freebsd_base::opts(); let mut base = super::freebsd_base::opts();

View file

@ -8,7 +8,7 @@
// option. This file may not be copied, modified, or distributed // option. This file may not be copied, modified, or distributed
// except according to those terms. // except according to those terms.
use target::{LinkerFlavor, Target, TargetResult}; use spec::{LinkerFlavor, Target, TargetResult};
pub fn target() -> TargetResult { pub fn target() -> TargetResult {
let mut base = super::haiku_base::opts(); let mut base = super::haiku_base::opts();

View file

@ -8,7 +8,7 @@
// option. This file may not be copied, modified, or distributed // option. This file may not be copied, modified, or distributed
// except according to those terms. // except according to those terms.
use target::{LinkerFlavor, Target, TargetResult}; use spec::{LinkerFlavor, Target, TargetResult};
pub fn target() -> TargetResult { pub fn target() -> TargetResult {
let mut base = super::linux_base::opts(); let mut base = super::linux_base::opts();

View file

@ -8,7 +8,7 @@
// option. This file may not be copied, modified, or distributed // option. This file may not be copied, modified, or distributed
// except according to those terms. // except according to those terms.
use target::{LinkerFlavor, Target, TargetResult}; use spec::{LinkerFlavor, Target, TargetResult};
pub fn target() -> TargetResult { pub fn target() -> TargetResult {
let mut base = super::linux_musl_base::opts(); let mut base = super::linux_musl_base::opts();

View file

@ -8,7 +8,7 @@
// option. This file may not be copied, modified, or distributed // option. This file may not be copied, modified, or distributed
// except according to those terms. // except according to those terms.
use target::{LinkerFlavor, Target, TargetResult}; use spec::{LinkerFlavor, Target, TargetResult};
pub fn target() -> TargetResult { pub fn target() -> TargetResult {
let mut base = super::netbsd_base::opts(); let mut base = super::netbsd_base::opts();

View file

@ -8,7 +8,7 @@
// option. This file may not be copied, modified, or distributed // option. This file may not be copied, modified, or distributed
// except according to those terms. // except according to those terms.
use target::{LinkerFlavor, Target, TargetResult}; use spec::{LinkerFlavor, Target, TargetResult};
pub fn target() -> TargetResult { pub fn target() -> TargetResult {
let mut base = super::openbsd_base::opts(); let mut base = super::openbsd_base::opts();

View file

@ -8,7 +8,7 @@
// option. This file may not be copied, modified, or distributed // option. This file may not be copied, modified, or distributed
// except according to those terms. // except according to those terms.
use target::{LinkArgs, LinkerFlavor, PanicStrategy, TargetOptions}; use spec::{LinkArgs, LinkerFlavor, PanicStrategy, TargetOptions};
use std::default::Default; use std::default::Default;
//use std::process::Command; //use std::process::Command;

View file

@ -8,7 +8,7 @@
// option. This file may not be copied, modified, or distributed // option. This file may not be copied, modified, or distributed
// except according to those terms. // except according to those terms.
use target::{LinkArgs, LinkerFlavor, TargetOptions, RelroLevel}; use spec::{LinkArgs, LinkerFlavor, TargetOptions, RelroLevel};
use std::default::Default; use std::default::Default;
pub fn opts() -> TargetOptions { pub fn opts() -> TargetOptions {

View file

@ -8,7 +8,7 @@
// option. This file may not be copied, modified, or distributed // option. This file may not be copied, modified, or distributed
// except according to those terms. // except according to those terms.
use target::{LinkerFlavor, TargetOptions}; use spec::{LinkerFlavor, TargetOptions};
pub fn opts() -> TargetOptions { pub fn opts() -> TargetOptions {
let mut base = super::linux_base::opts(); let mut base = super::linux_base::opts();

View file

@ -8,7 +8,7 @@
// option. This file may not be copied, modified, or distributed // option. This file may not be copied, modified, or distributed
// except according to those terms. // except according to those terms.
use target::{LinkerFlavor, Target, TargetOptions, TargetResult}; use spec::{LinkerFlavor, Target, TargetOptions, TargetResult};
pub fn target() -> TargetResult { pub fn target() -> TargetResult {
Ok(Target { Ok(Target {

View file

@ -8,7 +8,7 @@
// option. This file may not be copied, modified, or distributed // option. This file may not be copied, modified, or distributed
// except according to those terms. // except according to those terms.
use target::{LinkerFlavor, Target, TargetOptions, TargetResult}; use spec::{LinkerFlavor, Target, TargetOptions, TargetResult};
pub fn target() -> TargetResult { pub fn target() -> TargetResult {
Ok(Target { Ok(Target {

View file

@ -8,7 +8,7 @@
// option. This file may not be copied, modified, or distributed // option. This file may not be copied, modified, or distributed
// except according to those terms. // except according to those terms.
use target::{LinkerFlavor, Target, TargetOptions, TargetResult}; use spec::{LinkerFlavor, Target, TargetOptions, TargetResult};
pub fn target() -> TargetResult { pub fn target() -> TargetResult {
Ok(Target { Ok(Target {

View file

@ -8,7 +8,7 @@
// option. This file may not be copied, modified, or distributed // option. This file may not be copied, modified, or distributed
// except according to those terms. // except according to those terms.
use target::{LinkerFlavor, Target, TargetResult}; use spec::{LinkerFlavor, Target, TargetResult};
pub fn target() -> TargetResult { pub fn target() -> TargetResult {
let mut base = super::linux_musl_base::opts(); let mut base = super::linux_musl_base::opts();

View file

@ -8,7 +8,7 @@
// option. This file may not be copied, modified, or distributed // option. This file may not be copied, modified, or distributed
// except according to those terms. // except according to those terms.
use target::{LinkerFlavor, Target, TargetOptions, TargetResult}; use spec::{LinkerFlavor, Target, TargetOptions, TargetResult};
pub fn target() -> TargetResult { pub fn target() -> TargetResult {
Ok(Target { Ok(Target {

View file

@ -8,7 +8,7 @@
// option. This file may not be copied, modified, or distributed // option. This file may not be copied, modified, or distributed
// except according to those terms. // except according to those terms.
use target::{LinkerFlavor, Target, TargetOptions, TargetResult}; use spec::{LinkerFlavor, Target, TargetOptions, TargetResult};
pub fn target() -> TargetResult { pub fn target() -> TargetResult {
Ok(Target { Ok(Target {

View file

@ -8,7 +8,7 @@
// option. This file may not be copied, modified, or distributed // option. This file may not be copied, modified, or distributed
// except according to those terms. // except according to those terms.
use target::{LinkerFlavor, Target, TargetResult}; use spec::{LinkerFlavor, Target, TargetResult};
pub fn target() -> TargetResult { pub fn target() -> TargetResult {
let mut base = super::linux_musl_base::opts(); let mut base = super::linux_musl_base::opts();

View file

@ -8,7 +8,7 @@
// option. This file may not be copied, modified, or distributed // option. This file may not be copied, modified, or distributed
// except according to those terms. // except according to those terms.
use target::{LinkerFlavor, Target, TargetOptions, TargetResult}; use spec::{LinkerFlavor, Target, TargetOptions, TargetResult};
pub fn target() -> TargetResult { pub fn target() -> TargetResult {
Ok(Target { Ok(Target {

View file

@ -8,7 +8,7 @@
// option. This file may not be copied, modified, or distributed // option. This file may not be copied, modified, or distributed
// except according to those terms. // except according to those terms.
use target::{LinkerFlavor, PanicStrategy, Target, TargetOptions, TargetResult}; use spec::{LinkerFlavor, PanicStrategy, Target, TargetOptions, TargetResult};
pub fn target() -> TargetResult { pub fn target() -> TargetResult {
Ok(Target { Ok(Target {

View file

@ -8,7 +8,7 @@
// option. This file may not be copied, modified, or distributed // option. This file may not be copied, modified, or distributed
// except according to those terms. // except according to those terms.
use target::{LinkArgs, LinkerFlavor, TargetOptions, RelroLevel}; use spec::{LinkArgs, LinkerFlavor, TargetOptions, RelroLevel};
use std::default::Default; use std::default::Default;
pub fn opts() -> TargetOptions { pub fn opts() -> TargetOptions {

View file

@ -8,7 +8,7 @@
// option. This file may not be copied, modified, or distributed // option. This file may not be copied, modified, or distributed
// except according to those terms. // except according to those terms.
use target::{LinkArgs, LinkerFlavor, TargetOptions, RelroLevel}; use spec::{LinkArgs, LinkerFlavor, TargetOptions, RelroLevel};
use std::default::Default; use std::default::Default;
pub fn opts() -> TargetOptions { pub fn opts() -> TargetOptions {

View file

@ -8,7 +8,7 @@
// option. This file may not be copied, modified, or distributed // option. This file may not be copied, modified, or distributed
// except according to those terms. // except according to those terms.
use target::{LinkerFlavor, Target, TargetResult, RelroLevel}; use spec::{LinkerFlavor, Target, TargetResult, RelroLevel};
pub fn target() -> TargetResult { pub fn target() -> TargetResult {
let mut base = super::linux_base::opts(); let mut base = super::linux_base::opts();

View file

@ -8,7 +8,7 @@
// option. This file may not be copied, modified, or distributed // option. This file may not be copied, modified, or distributed
// except according to those terms. // except according to those terms.
use target::{LinkerFlavor, Target, TargetResult}; use spec::{LinkerFlavor, Target, TargetResult};
pub fn target() -> TargetResult { pub fn target() -> TargetResult {
let mut base = super::linux_base::opts(); let mut base = super::linux_base::opts();

View file

@ -8,7 +8,7 @@
// option. This file may not be copied, modified, or distributed // option. This file may not be copied, modified, or distributed
// except according to those terms. // except according to those terms.
use target::{LinkerFlavor, Target, TargetResult}; use spec::{LinkerFlavor, Target, TargetResult};
pub fn target() -> TargetResult { pub fn target() -> TargetResult {
let mut base = super::linux_base::opts(); let mut base = super::linux_base::opts();

View file

@ -8,8 +8,7 @@
// option. This file may not be copied, modified, or distributed // option. This file may not be copied, modified, or distributed
// except according to those terms. // except according to those terms.
use LinkerFlavor; use spec::{LinkerFlavor, Target, TargetResult};
use target::{Target, TargetResult};
pub fn target() -> TargetResult { pub fn target() -> TargetResult {
let mut base = super::linux_base::opts(); let mut base = super::linux_base::opts();

View file

@ -8,8 +8,7 @@
// option. This file may not be copied, modified, or distributed // option. This file may not be copied, modified, or distributed
// except according to those terms. // except according to those terms.
use LinkerFlavor; use spec::{LinkerFlavor, Target, TargetResult};
use target::{Target, TargetResult};
pub fn target() -> TargetResult { pub fn target() -> TargetResult {
let mut base = super::netbsd_base::opts(); let mut base = super::netbsd_base::opts();

View file

@ -8,7 +8,7 @@
// option. This file may not be copied, modified, or distributed // option. This file may not be copied, modified, or distributed
// except according to those terms. // except according to those terms.
use target::{LinkArgs, LinkerFlavor, TargetOptions}; use spec::{LinkArgs, LinkerFlavor, TargetOptions};
use std::default::Default; use std::default::Default;
pub fn opts() -> TargetOptions { pub fn opts() -> TargetOptions {

View file

@ -8,7 +8,7 @@
// option. This file may not be copied, modified, or distributed // option. This file may not be copied, modified, or distributed
// except according to those terms. // except according to those terms.
use target::{LinkerFlavor, Target, TargetResult}; use spec::{LinkerFlavor, Target, TargetResult};
pub fn target() -> TargetResult { pub fn target() -> TargetResult {
let mut base = super::linux_base::opts(); let mut base = super::linux_base::opts();

View file

@ -8,7 +8,7 @@
// option. This file may not be copied, modified, or distributed // option. This file may not be copied, modified, or distributed
// except according to those terms. // except according to those terms.
use target::TargetOptions; use spec::TargetOptions;
use std::default::Default; use std::default::Default;
pub fn opts() -> TargetOptions { pub fn opts() -> TargetOptions {

View file

@ -8,7 +8,7 @@
// option. This file may not be copied, modified, or distributed // option. This file may not be copied, modified, or distributed
// except according to those terms. // except according to those terms.
use target::{LinkerFlavor, Target, TargetResult}; use spec::{LinkerFlavor, Target, TargetResult};
pub fn target() -> TargetResult { pub fn target() -> TargetResult {
let mut base = super::linux_base::opts(); let mut base = super::linux_base::opts();

View file

@ -8,7 +8,7 @@
// option. This file may not be copied, modified, or distributed // option. This file may not be copied, modified, or distributed
// except according to those terms. // except according to those terms.
use target::{LinkerFlavor, Target, TargetResult}; use spec::{LinkerFlavor, Target, TargetResult};
pub fn target() -> TargetResult { pub fn target() -> TargetResult {
let mut base = super::netbsd_base::opts(); let mut base = super::netbsd_base::opts();

View file

@ -8,8 +8,7 @@
// option. This file may not be copied, modified, or distributed // option. This file may not be copied, modified, or distributed
// except according to those terms. // except according to those terms.
use LinkerFlavor; use spec::{LinkerFlavor, Target, TargetResult};
use target::{Target, TargetResult};
pub fn target() -> TargetResult { pub fn target() -> TargetResult {
let mut base = super::linux_base::opts(); let mut base = super::linux_base::opts();

View file

@ -8,7 +8,7 @@
// option. This file may not be copied, modified, or distributed // option. This file may not be copied, modified, or distributed
// except according to those terms. // except according to those terms.
use target::{LinkerFlavor, Target, TargetResult}; use spec::{LinkerFlavor, Target, TargetResult};
pub fn target() -> TargetResult { pub fn target() -> TargetResult {
let mut base = super::solaris_base::opts(); let mut base = super::solaris_base::opts();

Some files were not shown because too many files have changed in this diff Show more