Rollup merge of #119162 - heiher:direct-access-external-data, r=petrochenkov
Add unstable `-Z direct-access-external-data` cmdline flag for `rustc` The new flag has been described in the Major Change Proposal at https://github.com/rust-lang/compiler-team/issues/707 Fixes #118053
This commit is contained in:
@@ -767,6 +767,13 @@ impl Session {
|
||||
self.opts.unstable_opts.tls_model.unwrap_or(self.target.tls_model)
|
||||
}
|
||||
|
||||
pub fn direct_access_external_data(&self) -> Option<bool> {
|
||||
self.opts
|
||||
.unstable_opts
|
||||
.direct_access_external_data
|
||||
.or(self.target.direct_access_external_data)
|
||||
}
|
||||
|
||||
pub fn split_debuginfo(&self) -> SplitDebuginfo {
|
||||
self.opts.cg.split_debuginfo.unwrap_or(self.target.split_debuginfo)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user