Skip to content

Commit

Permalink
Update builtins to 1.76.0
Browse files Browse the repository at this point in the history
  • Loading branch information
Jake-Shadle committed Feb 9, 2024
1 parent 63ae0e5 commit bd72f83
Show file tree
Hide file tree
Showing 2 changed files with 81 additions and 28 deletions.
2 changes: 1 addition & 1 deletion src/targets.rs
Original file line number Diff line number Diff line change
Expand Up @@ -372,7 +372,7 @@ pub fn get_builtin_target_by_triple(triple: &str) -> Option<&'static TargetInfo>
/// versions.
///
/// ```
/// assert_eq!("1.75.0", cfg_expr::targets::rustc_version());
/// assert_eq!("1.76.0", cfg_expr::targets::rustc_version());
/// ```
pub fn rustc_version() -> &'static str {
builtins::RUSTC_VERSION
Expand Down
107 changes: 80 additions & 27 deletions src/targets/builtins.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

use super::*;

pub(crate) const RUSTC_VERSION: &str = "1.75.0";
pub(crate) const RUSTC_VERSION: &str = "1.76.0";

pub const ALL_BUILTINS: &[TargetInfo] = &[
TargetInfo {
Expand Down Expand Up @@ -91,6 +91,19 @@ pub const ALL_BUILTINS: &[TargetInfo] = &[
has_atomics: HasAtomics::atomic_8_16_32_64_128_ptr,
panic: Panic::unwind,
},
TargetInfo {
triple: Triple::new_const("aarch64-apple-watchos"),
os: Some(Os::watchos),
abi: None,
arch: Arch::aarch64,
env: None,
vendor: Some(Vendor::apple),
families: Families::unix,
pointer_width: 64,
endian: Endian::little,
has_atomics: HasAtomics::atomic_8_16_32_64_128_ptr,
panic: Panic::unwind,
},
TargetInfo {
triple: Triple::new_const("aarch64-apple-watchos-sim"),
os: Some(Os::watchos),
Expand Down Expand Up @@ -520,6 +533,32 @@ pub const ALL_BUILTINS: &[TargetInfo] = &[
has_atomics: HasAtomics::atomic_8_16_32_64_128_ptr,
panic: Panic::unwind,
},
TargetInfo {
triple: Triple::new_const("arm64e-apple-darwin"),
os: Some(Os::macos),
abi: None,
arch: Arch::aarch64,
env: None,
vendor: Some(Vendor::apple),
families: Families::unix,
pointer_width: 64,
endian: Endian::little,
has_atomics: HasAtomics::atomic_8_16_32_64_128_ptr,
panic: Panic::unwind,
},
TargetInfo {
triple: Triple::new_const("arm64e-apple-ios"),
os: Some(Os::ios),
abi: None,
arch: Arch::aarch64,
env: None,
vendor: Some(Vendor::apple),
families: Families::unix,
pointer_width: 64,
endian: Endian::little,
has_atomics: HasAtomics::atomic_8_16_32_64_128_ptr,
panic: Panic::unwind,
},
TargetInfo {
triple: Triple::new_const("armeb-unknown-linux-gnueabi"),
os: Some(Os::linux),
Expand Down Expand Up @@ -936,19 +975,6 @@ pub const ALL_BUILTINS: &[TargetInfo] = &[
has_atomics: HasAtomics::atomic_8_16_32_64_ptr,
panic: Panic::unwind,
},
TargetInfo {
triple: Triple::new_const("asmjs-unknown-emscripten"),
os: Some(Os::emscripten),
abi: None,
arch: Arch::wasm32,
env: None,
vendor: Some(Vendor::unknown),
families: Families::unix_wasm,
pointer_width: 32,
endian: Endian::little,
has_atomics: HasAtomics::atomic_8_16_32_64_ptr,
panic: Panic::unwind,
},
TargetInfo {
triple: Triple::new_const("avr-unknown-gnu-atmega328"),
os: None,
Expand Down Expand Up @@ -1300,6 +1326,19 @@ pub const ALL_BUILTINS: &[TargetInfo] = &[
has_atomics: HasAtomics::atomic_8_16_32_64_ptr,
panic: Panic::unwind,
},
TargetInfo {
triple: Triple::new_const("i686-win7-windows-msvc"),
os: Some(Os::windows),
abi: None,
arch: Arch::x86,
env: Some(Env::msvc),
vendor: Some(Vendor::win7),
families: Families::windows,
pointer_width: 32,
endian: Endian::little,
has_atomics: HasAtomics::atomic_8_16_32_64_ptr,
panic: Panic::unwind,
},
TargetInfo {
triple: Triple::new_const("i686-wrs-vxworks"),
os: Some(Os::vxworks),
Expand Down Expand Up @@ -1948,6 +1987,19 @@ pub const ALL_BUILTINS: &[TargetInfo] = &[
pointer_width: 32,
endian: Endian::little,
has_atomics: HasAtomics::atomic_8_16_32_ptr,
panic: Panic::unwind,
},
TargetInfo {
triple: Triple::new_const("riscv32imafc-unknown-none-elf"),
os: None,
abi: None,
arch: Arch::riscv32,
env: None,
vendor: Some(Vendor::unknown),
families: Families::new_const(&[]),
pointer_width: 32,
endian: Endian::little,
has_atomics: HasAtomics::atomic_8_16_32_ptr,
panic: Panic::abort,
},
TargetInfo {
Expand Down Expand Up @@ -2626,19 +2678,6 @@ pub const ALL_BUILTINS: &[TargetInfo] = &[
has_atomics: HasAtomics::atomic_8_16_32_64_ptr,
panic: Panic::unwind,
},
TargetInfo {
triple: Triple::new_const("x86_64-sun-solaris"),
os: Some(Os::solaris),
abi: None,
arch: Arch::x86_64,
env: None,
vendor: Some(Vendor::sun),
families: Families::unix,
pointer_width: 64,
endian: Endian::little,
has_atomics: HasAtomics::atomic_8_16_32_64_ptr,
panic: Panic::unwind,
},
TargetInfo {
triple: Triple::new_const("x86_64-unikraft-linux-musl"),
os: Some(Os::linux),
Expand Down Expand Up @@ -2886,6 +2925,19 @@ pub const ALL_BUILTINS: &[TargetInfo] = &[
has_atomics: HasAtomics::atomic_8_16_32_64_ptr,
panic: Panic::unwind,
},
TargetInfo {
triple: Triple::new_const("x86_64-win7-windows-msvc"),
os: Some(Os::windows),
abi: None,
arch: Arch::x86_64,
env: Some(Env::msvc),
vendor: Some(Vendor::win7),
families: Families::windows,
pointer_width: 64,
endian: Endian::little,
has_atomics: HasAtomics::atomic_8_16_32_64_ptr,
panic: Panic::unwind,
},
TargetInfo {
triple: Triple::new_const("x86_64-wrs-vxworks"),
os: Some(Os::vxworks),
Expand Down Expand Up @@ -2958,6 +3010,7 @@ impl super::Vendor {
pub const unikraft: Vendor = Vendor::new_const("unikraft");
pub const unknown: Vendor = Vendor::new_const("unknown");
pub const uwp: Vendor = Vendor::new_const("uwp");
pub const win7: Vendor = Vendor::new_const("win7");
pub const wrs: Vendor = Vendor::new_const("wrs");
}

Expand Down

0 comments on commit bd72f83

Please sign in to comment.