crux-musl

Unnamed repository; edit this file 'description' to name the repository.
git clone https://codeberg.org/emmett1/crux-musl
Log | Files | Refs | README | LICENSE

0003-compiler-Change-LLVM-targets.patch (2297B)


      1 diff -Naur rustc-1.87.0-src.orig/compiler/rustc_session/src/config.rs rustc-1.87.0-src/compiler/rustc_session/src/config.rs
      2 --- rustc-1.87.0-src.orig/compiler/rustc_session/src/config.rs	2025-05-15 20:36:30.225239112 +0200
      3 +++ rustc-1.87.0-src/compiler/rustc_session/src/config.rs	2025-05-15 20:48:15.135747563 +0200
      4 @@ -2104,6 +2104,10 @@
      5                  early_dcx.early_fatal(format!("target file {path:?} does not exist"))
      6              })
      7          }
      8 +        Some(s) if &s == "x86_64-pc-linux-gnu" => {
      9 +            TargetTuple::from_tuple("x86_64-unknown-linux-gnu")
     10 +        }
     11 +        Some(s) if &s == "i686-pc-linux-gnu" => TargetTuple::from_tuple("i686-unknown-linux-gnu"),
     12          Some(target) => TargetTuple::TargetTuple(target),
     13          _ => TargetTuple::from_tuple(host_tuple()),
     14      }
     15 diff -Naur rustc-1.87.0-src.orig/compiler/rustc_target/src/spec/targets/i686_unknown_linux_gnu.rs rustc-1.87.0-src/compiler/rustc_target/src/spec/targets/i686_unknown_linux_gnu.rs
     16 --- rustc-1.87.0-src.orig/compiler/rustc_target/src/spec/targets/i686_unknown_linux_gnu.rs	2025-05-15 20:36:30.234757239 +0200
     17 +++ rustc-1.87.0-src/compiler/rustc_target/src/spec/targets/i686_unknown_linux_gnu.rs	2025-05-15 20:48:52.682388445 +0200
     18 @@ -23,7 +23,7 @@
     19      base.stack_probes = StackProbeType::Inline;
     20  
     21      Target {
     22 -        llvm_target: "i686-unknown-linux-gnu".into(),
     23 +        llvm_target: "i686-pc-linux-gnu".into(),
     24          metadata: TargetMetadata {
     25              description: Some("32-bit Linux (kernel 3.2, glibc 2.17+)".into()),
     26              tier: Some(1),
     27 diff -Naur rustc-1.87.0-src.orig/compiler/rustc_target/src/spec/targets/x86_64_unknown_linux_gnu.rs rustc-1.87.0-src/compiler/rustc_target/src/spec/targets/x86_64_unknown_linux_gnu.rs
     28 --- rustc-1.87.0-src.orig/compiler/rustc_target/src/spec/targets/x86_64_unknown_linux_gnu.rs	2025-05-15 20:36:30.234642179 +0200
     29 +++ rustc-1.87.0-src/compiler/rustc_target/src/spec/targets/x86_64_unknown_linux_gnu.rs	2025-05-15 20:50:08.440385418 +0200
     30 @@ -28,7 +28,7 @@
     31      }
     32  
     33      Target {
     34 -        llvm_target: "x86_64-unknown-linux-gnu".into(),
     35 +        llvm_target: "x86_64-pc-linux-gnu".into(),
     36          metadata: TargetMetadata {
     37              description: Some("64-bit Linux (kernel 3.2+, glibc 2.17+)".into()),
     38              tier: Some(1),