File tree Expand file tree Collapse file tree 1 file changed +0
-16
lines changed Expand file tree Collapse file tree 1 file changed +0
-16
lines changed Original file line number Diff line number Diff line change @@ -177,21 +177,6 @@ pub(crate) fn run_aot(
177177 metadata : EncodedMetadata ,
178178 need_metadata_module : bool ,
179179) -> Box < ( CodegenResults , FxHashMap < WorkProductId , WorkProduct > ) > {
180- use rustc_span:: symbol:: sym;
181-
182- let crate_attrs = tcx. hir ( ) . attrs ( rustc_hir:: CRATE_HIR_ID ) ;
183- let subsystem = tcx. sess . first_attr_value_str_by_name ( crate_attrs, sym:: windows_subsystem) ;
184- let windows_subsystem = subsystem. map ( |subsystem| {
185- if subsystem != sym:: windows && subsystem != sym:: console {
186- tcx. sess . fatal ( & format ! (
187- "invalid windows subsystem `{}`, only \
188- `windows` and `console` are allowed",
189- subsystem
190- ) ) ;
191- }
192- subsystem. to_string ( )
193- } ) ;
194-
195180 let mut work_products = FxHashMap :: default ( ) ;
196181
197182 let cgus = if tcx. sess . opts . output_types . should_codegen ( ) {
@@ -312,7 +297,6 @@ pub(crate) fn run_aot(
312297 allocator_module,
313298 metadata_module,
314299 metadata,
315- windows_subsystem,
316300 linker_info : LinkerInfo :: new ( tcx, crate :: target_triple ( tcx. sess ) . to_string ( ) ) ,
317301 crate_info : CrateInfo :: new ( tcx) ,
318302 } ,
You can’t perform that action at this time.
0 commit comments