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
This commit is contained in:
@@ -793,6 +793,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