Skip to content

Commit fcdc6e2

Browse files
committed
Amjad50/Emerald: renamed amjad_os to emerald and related changes
1 parent d36fc6b commit fcdc6e2

40 files changed

+56
-56
lines changed

Cargo.lock

Lines changed: 24 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -81,29 +81,6 @@ version = "0.2.15"
8181
source = "registry+https://github.com/rust-lang/crates.io-index"
8282
checksum = "56fc6cf8dc8c4158eed8649f9b8b0ea1518eb62b544fe9490d66fa0b349eafe9"
8383

84-
[[package]]
85-
name = "amjad_os_kernel_user_link"
86-
version = "0.2.1"
87-
source = "registry+https://github.com/rust-lang/crates.io-index"
88-
checksum = "17549aafd3a6df6860b12329aff74941c7669483d0adaaf634f5e6aebff0639e"
89-
dependencies = [
90-
"compiler_builtins",
91-
"rustc-std-workspace-core",
92-
]
93-
94-
[[package]]
95-
name = "amjad_os_user_std"
96-
version = "0.2.2"
97-
source = "registry+https://github.com/rust-lang/crates.io-index"
98-
checksum = "d84fa958dc7be5b9c3a3f213869e53dd18bf8f4abee33f4bb620d94070226ba1"
99-
dependencies = [
100-
"amjad_os_kernel_user_link",
101-
"compiler_builtins",
102-
"increasing_heap_allocator",
103-
"rustc-std-workspace-alloc",
104-
"rustc-std-workspace-core",
105-
]
106-
10784
[[package]]
10885
name = "ammonia"
10986
version = "3.3.0"
@@ -1214,6 +1191,29 @@ dependencies = [
12141191
"stable_deref_trait",
12151192
]
12161193

1194+
[[package]]
1195+
name = "emerald_kernel_user_link"
1196+
version = "0.2.1"
1197+
source = "registry+https://github.com/rust-lang/crates.io-index"
1198+
checksum = "0785bd57d8819d6796c5d92f9406c8e83fa3317cf62abfcd9a3f0c48862a7a37"
1199+
dependencies = [
1200+
"compiler_builtins",
1201+
"rustc-std-workspace-core",
1202+
]
1203+
1204+
[[package]]
1205+
name = "emerald_std"
1206+
version = "0.2.2"
1207+
source = "registry+https://github.com/rust-lang/crates.io-index"
1208+
checksum = "24cefaf4e212b4da00f133b09e689ecdc1a00ac7f58fe03d530206f315a6eb42"
1209+
dependencies = [
1210+
"compiler_builtins",
1211+
"emerald_kernel_user_link",
1212+
"increasing_heap_allocator",
1213+
"rustc-std-workspace-alloc",
1214+
"rustc-std-workspace-core",
1215+
]
1216+
12171217
[[package]]
12181218
name = "ena"
12191219
version = "0.14.2"
@@ -5110,11 +5110,11 @@ version = "0.0.0"
51105110
dependencies = [
51115111
"addr2line",
51125112
"alloc",
5113-
"amjad_os_user_std",
51145113
"cfg-if",
51155114
"compiler_builtins",
51165115
"core",
51175116
"dlmalloc",
5117+
"emerald_std",
51185118
"fortanix-sgx-abi",
51195119
"hashbrown",
51205120
"hermit-abi",

compiler/rustc_target/src/spec/base/amjad_os.rs renamed to compiler/rustc_target/src/spec/base/emerald.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ use crate::spec::{Cc, LinkerFlavor, Lld, PanicStrategy, TargetOptions};
22

33
pub fn opts() -> TargetOptions {
44
TargetOptions {
5-
os: "amjad_os".into(),
5+
os: "emerald".into(),
66
linker: Some("rust-lld".into()),
77
linker_flavor: LinkerFlavor::Gnu(Cc::No, Lld::Yes),
88
// tls_model: TlsModel::InitialExec,

compiler/rustc_target/src/spec/base/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
pub(crate) mod aix;
2-
pub(crate) mod amjad_os;
32
pub(crate) mod android;
43
pub(crate) mod apple;
54
pub(crate) mod avr_gnu;
65
pub(crate) mod bpf;
76
pub(crate) mod dragonfly;
7+
pub(crate) mod emerald;
88
pub(crate) mod freebsd;
99
pub(crate) mod fuchsia;
1010
pub(crate) mod haiku;

compiler/rustc_target/src/spec/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1679,7 +1679,7 @@ supported_targets! {
16791679
("armv7-unknown-linux-ohos", armv7_unknown_linux_ohos),
16801680
("x86_64-unknown-linux-ohos", x86_64_unknown_linux_ohos),
16811681

1682-
("x86_64-unknown-amjad_os", x86_64_unknown_amjad_os),
1682+
("x86_64-unknown-emerald", x86_64_unknown_emerald),
16831683
}
16841684

16851685
/// Cow-Vec-Str: Cow<'static, [Cow<'static, str>]>

compiler/rustc_target/src/spec/targets/x86_64_unknown_amjad_os.rs renamed to compiler/rustc_target/src/spec/targets/x86_64_unknown_emerald.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ pub fn target() -> Target {
1313
plt_by_default: false,
1414
max_atomic_width: Some(64),
1515
stack_probes: StackProbeType::Inline,
16-
..base::amjad_os::opts()
16+
..base::emerald::opts()
1717
},
1818
}
1919
}

library/panic_abort/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ pub unsafe fn __rust_start_panic(_payload: &mut dyn PanicPayload) -> u32 {
4646
all(target_vendor = "fortanix", target_env = "sgx"),
4747
target_os = "xous",
4848
target_os = "uefi",
49-
target_os = "amjad_os"
49+
target_os = "emerald"
5050
))] {
5151
unsafe fn abort() -> ! {
5252
// call std::sys::abort_internal

library/std/Cargo.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -57,9 +57,9 @@ wasi = { version = "0.11.0", features = ['rustc-dep-of-std'], default-features =
5757
r-efi = { version = "4.2.0", features = ['rustc-dep-of-std']}
5858
r-efi-alloc = { version = "1.0.0", features = ['rustc-dep-of-std']}
5959

60-
[target.'cfg(target_os = "amjad_os")'.dependencies]
61-
# This is from `https://github.com/Amjad50/OS`, i.e. it must be run from that context
62-
user_std = { version = "0.2.2", package = "amjad_os_user_std", features = ['rustc-dep-of-std'] }
60+
[target.'cfg(target_os = "emerald")'.dependencies]
61+
# This is from `https://github.com/Amjad50/Emerald`, i.e. it must be run from that context
62+
user_std = { version = "0.2.2", package = "emerald_std", features = ['rustc-dep-of-std'] }
6363

6464
[features]
6565
backtrace = [

library/std/build.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ fn main() {
3535
|| target.contains("hurd")
3636
|| target.contains("uefi")
3737
|| target.contains("teeos")
38-
|| target.contains("amjad_os")
38+
|| target.contains("emerald")
3939
// See src/bootstrap/synthetic_targets.rs
4040
|| env::var("RUSTC_BOOTSTRAP_SYNTHETIC_TARGET").is_ok()
4141
{

0 commit comments

Comments
 (0)