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(
177
177
metadata : EncodedMetadata ,
178
178
need_metadata_module : bool ,
179
179
) -> 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
-
195
180
let mut work_products = FxHashMap :: default ( ) ;
196
181
197
182
let cgus = if tcx. sess . opts . output_types . should_codegen ( ) {
@@ -312,7 +297,6 @@ pub(crate) fn run_aot(
312
297
allocator_module,
313
298
metadata_module,
314
299
metadata,
315
- windows_subsystem,
316
300
linker_info : LinkerInfo :: new ( tcx, crate :: target_triple ( tcx. sess ) . to_string ( ) ) ,
317
301
crate_info : CrateInfo :: new ( tcx) ,
318
302
} ,
You can’t perform that action at this time.
0 commit comments