diff options
| author | Aleksey Kliger <alklig@microsoft.com> | 2025-09-17 16:33:41 -0400 |
|---|---|---|
| committer | Aleksey Kliger <alklig@microsoft.com> | 2025-09-17 16:33:41 -0400 |
| commit | 6347e7f7e00b7ea0d07748443bba31d52ac45626 (patch) | |
| tree | 75e6938f4ca093f8a9aca7ae69a6341382fe3e38 /compiler/rustc | |
| parent | 1bffa230015ba3c7826f6c5aceb0dc6e940d357e (diff) | |
| download | rust-6347e7f7e00b7ea0d07748443bba31d52ac45626.tar.gz rust-6347e7f7e00b7ea0d07748443bba31d52ac45626.zip | |
Revert "compiler: Add Windows resources to rustc-main and rustc_driver"
This reverts commit 095fa86a3ba30f4198c88ef300354391d3ab97e1.
Diffstat (limited to 'compiler/rustc')
| -rw-r--r-- | compiler/rustc/Cargo.toml | 5 | ||||
| -rw-r--r-- | compiler/rustc/build.rs | 16 |
2 files changed, 1 insertions, 20 deletions
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(); |
