Skip to content

Commit b34cfaf

Browse files
committed
Auto merge of #146687 - lambdageek:revert-rc-for-beta, r=jieyouxu
[beta] Revert "compiler: Add Windows resources to rustc-main and rustc_driver" This reverts #146018 due to #146693
2 parents 1bffa23 + 6347e7f commit b34cfaf

File tree

11 files changed

+8
-271
lines changed

11 files changed

+8
-271
lines changed

Cargo.lock

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -3275,7 +3275,6 @@ dependencies = [
32753275
"rustc_driver_impl",
32763276
"rustc_public",
32773277
"rustc_public_bridge",
3278-
"rustc_windows_rc",
32793278
"tikv-jemalloc-sys",
32803279
]
32813280

@@ -3651,7 +3650,6 @@ name = "rustc_driver"
36513650
version = "0.0.0"
36523651
dependencies = [
36533652
"rustc_driver_impl",
3654-
"rustc_windows_rc",
36553653
]
36563654

36573655
[[package]]
@@ -4748,13 +4746,6 @@ dependencies = [
47484746
"semver",
47494747
]
47504748

4751-
[[package]]
4752-
name = "rustc_windows_rc"
4753-
version = "0.0.0"
4754-
dependencies = [
4755-
"cc",
4756-
]
4757-
47584749
[[package]]
47594750
name = "rustdoc"
47604751
version = "0.0.0"

compiler/rustc/Cargo.toml

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,3 @@ llvm = ['rustc_driver_impl/llvm']
3333
max_level_info = ['rustc_driver_impl/max_level_info']
3434
rustc_randomized_layouts = ['rustc_driver_impl/rustc_randomized_layouts']
3535
# tidy-alphabetical-end
36-
37-
[build-dependencies]
38-
# tidy-alphabetical-start
39-
rustc_windows_rc = { path = "../rustc_windows_rc" }
40-
# tidy-alphabetical-end

compiler/rustc/build.rs

Lines changed: 1 addition & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
1-
use std::{env, path};
2-
3-
use rustc_windows_rc::{VersionInfoFileType, compile_windows_resource_file};
1+
use std::env;
42

53
fn main() {
64
let target_os = env::var("CARGO_CFG_TARGET_OS");
@@ -15,18 +13,6 @@ fn main() {
1513

1614
// Add a manifest file to rustc.exe.
1715
fn set_windows_exe_options() {
18-
set_windows_resource();
19-
set_windows_manifest();
20-
}
21-
22-
fn set_windows_resource() {
23-
let stem = path::PathBuf::from("rustc_main_resource");
24-
let file_description = "rustc";
25-
let res_file = compile_windows_resource_file(&stem, file_description, VersionInfoFileType::App);
26-
println!("cargo:rustc-link-arg={}", res_file.display());
27-
}
28-
29-
fn set_windows_manifest() {
3016
static WINDOWS_MANIFEST_FILE: &str = "Windows Manifest.xml";
3117

3218
let mut manifest = env::current_dir().unwrap();

compiler/rustc_codegen_ssa/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ ar_archive_writer = "0.5"
99
bitflags = "2.4.1"
1010
bstr = "1.11.3"
1111
# `cc` updates often break things, so we pin it here. Cargo enforces "max 1 semver-compat version
12-
# per crate", so if you change this, you need to also change it in `rustc_llvm` and `rustc_windows_rc`.
12+
# per crate", so if you change this, you need to also change it in `rustc_llvm`.
1313
cc = "=1.2.16"
1414
itertools = "0.12"
1515
pathdiff = "0.2.0"

compiler/rustc_driver/Cargo.toml

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,3 @@ crate-type = ["dylib"]
1010
# tidy-alphabetical-start
1111
rustc_driver_impl = { path = "../rustc_driver_impl" }
1212
# tidy-alphabetical-end
13-
14-
[build-dependencies]
15-
# tidy-alphabetical-start
16-
rustc_windows_rc = { path = "../rustc_windows_rc" }
17-
# tidy-alphabetical-end

compiler/rustc_driver/build.rs

Lines changed: 0 additions & 21 deletions
This file was deleted.

compiler/rustc_llvm/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ libc = "0.2.73"
1111
[build-dependencies]
1212
# tidy-alphabetical-start
1313
# `cc` updates often break things, so we pin it here. Cargo enforces "max 1 semver-compat version
14-
# per crate", so if you change this, you need to also change it in `rustc_codegen_ssa` and `rustc_windows_rc`.
14+
# per crate", so if you change this, you need to also change it in `rustc_codegen_ssa`.
1515
cc = "=1.2.16"
1616
# tidy-alphabetical-end
1717

compiler/rustc_windows_rc/Cargo.toml

Lines changed: 0 additions & 11 deletions
This file was deleted.

compiler/rustc_windows_rc/rustc.rc.in

Lines changed: 0 additions & 40 deletions
This file was deleted.

compiler/rustc_windows_rc/src/lib.rs

Lines changed: 0 additions & 158 deletions
This file was deleted.

0 commit comments

Comments
 (0)