File tree 2 files changed +10
-1
lines changed
2 files changed +10
-1
lines changed Original file line number Diff line number Diff line change @@ -226,7 +226,7 @@ fn make_win_dist(
226
226
let idx = line. find ( ':' ) . unwrap ( ) ;
227
227
let key = & line[ ..idx] ;
228
228
let trim_chars: & [ _ ] = & [ ' ' , '=' ] ;
229
- let value = line[ ( idx + 1 ) ..] . trim_start_matches ( trim_chars) . split ( ';' ) . map ( PathBuf :: from ) ;
229
+ let value = env :: split_paths ( line[ ( idx + 1 ) ..] . trim_start_matches ( trim_chars) ) ;
230
230
231
231
if key == "programs" {
232
232
bin_path. extend ( value) ;
Original file line number Diff line number Diff line change @@ -151,6 +151,12 @@ fn main() {
151
151
continue ;
152
152
}
153
153
154
+ // Include path contains host directory, replace it with target
155
+ if is_crossed && flag. starts_with ( "-I" ) {
156
+ cfg. flag ( & flag. replace ( & host, & target) ) ;
157
+ continue ;
158
+ }
159
+
154
160
cfg. flag ( flag) ;
155
161
}
156
162
@@ -189,6 +195,9 @@ fn main() {
189
195
190
196
if !is_crossed {
191
197
cmd. arg ( "--system-libs" ) ;
198
+ } else if target. contains ( "windows-gnu" ) {
199
+ println ! ( "cargo:rustc-link-lib=shell32" ) ;
200
+ println ! ( "cargo:rustc-link-lib=uuid" ) ;
192
201
}
193
202
cmd. args ( & components) ;
194
203
You can’t perform that action at this time.
0 commit comments