Remove unused host_tlib_path field
This commit is contained in:
parent
f51d1d29f7
commit
1543256e6f
1 changed files with 1 additions and 2 deletions
|
@ -143,7 +143,6 @@ pub struct Session {
|
||||||
pub target: Target,
|
pub target: Target,
|
||||||
pub host: Target,
|
pub host: Target,
|
||||||
pub opts: config::Options,
|
pub opts: config::Options,
|
||||||
pub host_tlib_path: Arc<SearchPath>,
|
|
||||||
pub target_tlib_path: Arc<SearchPath>,
|
pub target_tlib_path: Arc<SearchPath>,
|
||||||
pub psess: ParseSess,
|
pub psess: ParseSess,
|
||||||
pub sysroot: PathBuf,
|
pub sysroot: PathBuf,
|
||||||
|
@ -1042,6 +1041,7 @@ pub fn build_session(
|
||||||
|
|
||||||
let host_triple = config::host_tuple();
|
let host_triple = config::host_tuple();
|
||||||
let target_triple = sopts.target_triple.tuple();
|
let target_triple = sopts.target_triple.tuple();
|
||||||
|
// FIXME use host sysroot?
|
||||||
let host_tlib_path = Arc::new(SearchPath::from_sysroot_and_triple(&sysroot, host_triple));
|
let host_tlib_path = Arc::new(SearchPath::from_sysroot_and_triple(&sysroot, host_triple));
|
||||||
let target_tlib_path = if host_triple == target_triple {
|
let target_tlib_path = if host_triple == target_triple {
|
||||||
// Use the same `SearchPath` if host and target triple are identical to avoid unnecessary
|
// Use the same `SearchPath` if host and target triple are identical to avoid unnecessary
|
||||||
|
@ -1070,7 +1070,6 @@ pub fn build_session(
|
||||||
target,
|
target,
|
||||||
host,
|
host,
|
||||||
opts: sopts,
|
opts: sopts,
|
||||||
host_tlib_path,
|
|
||||||
target_tlib_path,
|
target_tlib_path,
|
||||||
psess,
|
psess,
|
||||||
sysroot,
|
sysroot,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue