Skip to content

Commit a839b07

Browse files
committed
Use object crate from crates.io to fix windows build error
1 parent e384365 commit a839b07

File tree

3 files changed

+11
-1
lines changed

3 files changed

+11
-1
lines changed

compiler/rustc_codegen_gcc/Cargo.lock

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -143,6 +143,15 @@ dependencies = [
143143
"libc",
144144
]
145145

146+
[[package]]
147+
name = "object"
148+
version = "0.37.1"
149+
source = "registry+https://github.com/rust-lang/crates.io-index"
150+
checksum = "03fd943161069e1768b4b3d050890ba48730e590f57e56d4aa04e7e090e61b4a"
151+
dependencies = [
152+
"memchr",
153+
]
154+
146155
[[package]]
147156
name = "once_cell"
148157
version = "1.20.2"
@@ -179,6 +188,7 @@ dependencies = [
179188
"boml",
180189
"gccjit",
181190
"lang_tester",
191+
"object",
182192
"tempfile",
183193
]
184194

compiler/rustc_codegen_gcc/Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ master = ["gccjit/master"]
2222
default = ["master"]
2323

2424
[dependencies]
25+
object = { version = "0.37.0", default-features = false, features = ["std", "read"] }
2526
gccjit = "2.7"
2627
#gccjit = { git = "https://github.com/rust-lang/gccjit.rs" }
2728

compiler/rustc_codegen_gcc/src/lib.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@
2727
#![allow(clippy::needless_lifetimes, clippy::uninlined_format_args)]
2828

2929
// Some "regular" crates we want to share with rustc
30-
extern crate object;
3130
extern crate smallvec;
3231
// FIXME(antoyo): clippy bug: remove the #[allow] when it's fixed.
3332
#[allow(unused_extern_crates)]

0 commit comments

Comments
 (0)