rustc_target: Mark UEFI targets as is_like_windows
/is_like_msvc
Document what `is_like_windows` and `is_like_msvc` mean in more detail.
This commit is contained in:
parent
7f5a42b073
commit
04d41e1f40
5 changed files with 21 additions and 15 deletions
|
@ -307,6 +307,7 @@ pub struct CodegenContext<B: WriteBackendMethods> {
|
|||
pub allocator_module_config: Arc<ModuleConfig>,
|
||||
pub tm_factory: TargetMachineFactory<B>,
|
||||
pub msvc_imps_needed: bool,
|
||||
pub is_pe_coff: bool,
|
||||
pub target_pointer_width: u32,
|
||||
pub target_arch: String,
|
||||
pub debuginfo: config::DebugInfo,
|
||||
|
@ -1022,6 +1023,7 @@ fn start_executing_work<B: ExtraBackendMethods>(
|
|||
tm_factory: TargetMachineFactory(backend.target_machine_factory(tcx.sess, ol)),
|
||||
total_cgus,
|
||||
msvc_imps_needed: msvc_imps_needed(tcx),
|
||||
is_pe_coff: tcx.sess.target.is_like_windows,
|
||||
target_pointer_width: tcx.sess.target.pointer_width,
|
||||
target_arch: tcx.sess.target.arch.clone(),
|
||||
debuginfo: tcx.sess.opts.debuginfo,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue