diff options
| author | bjorn3 <17426603+bjorn3@users.noreply.github.com> | 2025-03-12 14:15:19 +0000 |
|---|---|---|
| committer | bjorn3 <17426603+bjorn3@users.noreply.github.com> | 2025-03-12 15:05:25 +0000 |
| commit | 1543256e6f5f8a46e5acbee7bcb39354ece10010 (patch) | |
| tree | 4dd52c3189f41f6029b7c6ee65602baf8588a0b5 | |
| parent | f51d1d29f7776cc887971a890f8faf6e46aa3acd (diff) | |
| download | rust-1543256e6f5f8a46e5acbee7bcb39354ece10010.tar.gz rust-1543256e6f5f8a46e5acbee7bcb39354ece10010.zip | |
Remove unused host_tlib_path field
| -rw-r--r-- | compiler/rustc_session/src/session.rs | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/compiler/rustc_session/src/session.rs b/compiler/rustc_session/src/session.rs index bcd9a73d9d3..1c9adea281d 100644 --- a/compiler/rustc_session/src/session.rs +++ b/compiler/rustc_session/src/session.rs @@ -143,7 +143,6 @@ pub struct Session { pub target: Target, pub host: Target, pub opts: config::Options, - pub host_tlib_path: Arc<SearchPath>, pub target_tlib_path: Arc<SearchPath>, pub psess: ParseSess, pub sysroot: PathBuf, @@ -1042,6 +1041,7 @@ pub fn build_session( let host_triple = config::host_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 target_tlib_path = if host_triple == target_triple { // Use the same `SearchPath` if host and target triple are identical to avoid unnecessary @@ -1070,7 +1070,6 @@ pub fn build_session( target, host, opts: sopts, - host_tlib_path, target_tlib_path, psess, sysroot, |
