File tree Expand file tree Collapse file tree 3 files changed +4
-92
lines changed Expand file tree Collapse file tree 3 files changed +4
-92
lines changed Original file line number Diff line number Diff line change @@ -13,7 +13,7 @@ fn main() {
13
13
14
14
check ( ) ;
15
15
copy ( & out) ;
16
- patch ( & out ) ;
16
+ patch ( ) ;
17
17
build ( & out) ;
18
18
generate_bindings ( & out) ;
19
19
link ( ) ;
@@ -57,36 +57,11 @@ fn copy(out: &Path) {
57
57
. unwrap ( ) ;
58
58
}
59
59
60
- fn patch ( out : & Path ) {
60
+ fn patch ( ) {
61
61
println ! ( "=> Patching simavr" ) ;
62
62
63
63
#[ 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" ) ;
90
65
}
91
66
92
67
fn build ( out : & Path ) {
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments