-
Notifications
You must be signed in to change notification settings - Fork 15
/
cargo-c-0.9-fixes.patch
38 lines (33 loc) · 1.38 KB
/
cargo-c-0.9-fixes.patch
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
From: Kleis Auke Wolthuizen <[email protected]>
Date: Sat, 2 Jan 2021 20:00:00 +0100
Subject: [PATCH 1/2] Add llvm-mingw ARM/ARM64 dlltool targets
diff --git a/src/build.rs b/src/build.rs
index 1111111..2222222 100644
--- a/src/build.rs
+++ b/src/build.rs
@@ -223,6 +223,8 @@ fn build_implib_file(
let binutils_arch = match arch.as_str() {
"x86_64" => "i386:x86-64",
"x86" => "i386",
+ "thumbv7a" => "arm",
+ "aarch64" => "arm64",
_ => unimplemented!("Windows support for {} is not implemented yet.", arch),
};
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
From: Kleis Auke Wolthuizen <[email protected]>
Date: Wed, 3 Mar 2021 12:00:00 +0100
Subject: [PATCH 2/2] Enable nightly Cargo features by default
This allows cargo-c to handle the -Zbuild-std feature flag.
diff --git a/src/config.rs b/src/config.rs
index 1111111..2222222 100644
--- a/src/config.rs
+++ b/src/config.rs
@@ -19,6 +19,7 @@ pub fn config_configure(config: &mut Config, args: &ArgMatches<'_>) -> CliResult
.unwrap_or_default()
.map(String::from)
.collect();
+ config.nightly_features_allowed = true;
config.configure(
args.occurrences_of("verbose") as u32,
args.is_present("quiet"),