Skip to content

Commit 8407817

Browse files
authored
Merge pull request #8 from orukusaki/update-simavr
update simavr
2 parents 7d1b5b6 + eb23608 commit 8407817

File tree

3 files changed

+4
-92
lines changed

3 files changed

+4
-92
lines changed

build.rs

Lines changed: 3 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ fn main() {
1313

1414
check();
1515
copy(&out);
16-
patch(&out);
16+
patch();
1717
build(&out);
1818
generate_bindings(&out);
1919
link();
@@ -57,36 +57,11 @@ fn copy(out: &Path) {
5757
.unwrap();
5858
}
5959

60-
fn patch(out: &Path) {
60+
fn patch() {
6161
println!("=> Patching simavr");
6262

6363
#[cfg(feature = "patch-twi-inconsistencies")]
64-
patch_ex(out, "twi-inconsistencies.patch");
65-
66-
let _ = out;
67-
}
68-
69-
#[allow(unused)]
70-
fn patch_ex(out: &Path, name: &str) {
71-
let path = Path::new(file!())
72-
.parent()
73-
.unwrap()
74-
.join("patches")
75-
.join(name)
76-
.canonicalize()
77-
.unwrap();
78-
79-
let status = Command::new("patch")
80-
.arg("-p1")
81-
.arg("-i")
82-
.arg(path)
83-
.current_dir(out.join("simavr"))
84-
.status()
85-
.expect("Couldn't run `patch`");
86-
87-
if !status.success() {
88-
panic!("`patch` returned a non-zero exit code");
89-
}
64+
println!("cargo:warning=The 'patch-twi-inconsistencies' feature is deprecated");
9065
}
9166

9267
fn build(out: &Path) {

patches/twi-inconsistencies.patch

Lines changed: 0 additions & 63 deletions
This file was deleted.

vendor/simavr

Submodule simavr updated 373 files

0 commit comments

Comments
 (0)