Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 1543256

Browse files
committed
Remove unused host_tlib_path field
1 parent f51d1d2 commit 1543256

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

‎compiler/rustc_session/src/session.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,6 @@ pub struct Session {
143143
pub target: Target,
144144
pub host: Target,
145145
pub opts: config::Options,
146-
pub host_tlib_path: Arc<SearchPath>,
147146
pub target_tlib_path: Arc<SearchPath>,
148147
pub psess: ParseSess,
149148
pub sysroot: PathBuf,
@@ -1042,6 +1041,7 @@ pub fn build_session(
10421041

10431042
let host_triple = config::host_tuple();
10441043
let target_triple = sopts.target_triple.tuple();
1044+
// FIXME use host sysroot?
10451045
let host_tlib_path = Arc::new(SearchPath::from_sysroot_and_triple(&sysroot, host_triple));
10461046
let target_tlib_path = if host_triple == target_triple {
10471047
// Use the same `SearchPath` if host and target triple are identical to avoid unnecessary
@@ -1070,7 +1070,6 @@ pub fn build_session(
10701070
target,
10711071
host,
10721072
opts: sopts,
1073-
host_tlib_path,
10741073
target_tlib_path,
10751074
psess,
10761075
sysroot,

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /