From 6347e7f7e00b7ea0d07748443bba31d52ac45626 Mon Sep 17 00:00:00 2001 From: Aleksey Kliger Date: Wed, 17 Sep 2025 16:33:41 -0400 Subject: Revert "compiler: Add Windows resources to rustc-main and rustc_driver" This reverts commit 095fa86a3ba30f4198c88ef300354391d3ab97e1. --- compiler/rustc/Cargo.toml | 5 ----- compiler/rustc/build.rs | 16 +--------------- 2 files changed, 1 insertion(+), 20 deletions(-) (limited to 'compiler/rustc') diff --git a/compiler/rustc/Cargo.toml b/compiler/rustc/Cargo.toml index e3214d1ab9c..3ca75235446 100644 --- a/compiler/rustc/Cargo.toml +++ b/compiler/rustc/Cargo.toml @@ -33,8 +33,3 @@ llvm = ['rustc_driver_impl/llvm'] max_level_info = ['rustc_driver_impl/max_level_info'] rustc_randomized_layouts = ['rustc_driver_impl/rustc_randomized_layouts'] # tidy-alphabetical-end - -[build-dependencies] -# tidy-alphabetical-start -rustc_windows_rc = { path = "../rustc_windows_rc" } -# tidy-alphabetical-end diff --git a/compiler/rustc/build.rs b/compiler/rustc/build.rs index 9b5def53e3c..8b7d28d2b8a 100644 --- a/compiler/rustc/build.rs +++ b/compiler/rustc/build.rs @@ -1,6 +1,4 @@ -use std::{env, path}; - -use rustc_windows_rc::{VersionInfoFileType, compile_windows_resource_file}; +use std::env; fn main() { let target_os = env::var("CARGO_CFG_TARGET_OS"); @@ -15,18 +13,6 @@ fn main() { // Add a manifest file to rustc.exe. fn set_windows_exe_options() { - set_windows_resource(); - set_windows_manifest(); -} - -fn set_windows_resource() { - let stem = path::PathBuf::from("rustc_main_resource"); - let file_description = "rustc"; - let res_file = compile_windows_resource_file(&stem, file_description, VersionInfoFileType::App); - println!("cargo:rustc-link-arg={}", res_file.display()); -} - -fn set_windows_manifest() { static WINDOWS_MANIFEST_FILE: &str = "Windows Manifest.xml"; let mut manifest = env::current_dir().unwrap(); -- cgit 1.4.1-3-g733a5