File tree 1 file changed +4
-4
lines changed 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change 1
- use std:: { collections:: BTreeMap , env, sync:: atomic:: Ordering } ;
1
+ use std:: { collections:: BTreeMap , env, path :: PathBuf , sync:: atomic:: Ordering } ;
2
2
3
3
fn main ( ) {
4
4
println ! ( "cargo:rerun-if-changed=build.rs" ) ;
@@ -147,8 +147,8 @@ fn generate_aarch64_outlined_atomics() {
147
147
buf += macro_def;
148
148
buf += "}; }\n " ;
149
149
}
150
- let dst = std:: env:: var ( "OUT_DIR" ) . unwrap ( ) + "/outlined_atomics.rs" ;
151
- std:: fs:: write ( dst , buf) . unwrap ( ) ;
150
+ let out_dir = PathBuf :: from ( std:: env:: var ( "OUT_DIR" ) . unwrap ( ) ) ;
151
+ std:: fs:: write ( out_dir . join ( "outlined_atomics.rs" ) , buf) . unwrap ( ) ;
152
152
}
153
153
154
154
/// Emit directives for features we expect to support that aren't in `Cargo.toml`.
@@ -676,7 +676,7 @@ mod c {
676
676
677
677
fn build_aarch64_out_of_line_atomics_libraries ( builtins_dir : & Path , cfg : & mut cc:: Build ) {
678
678
let out_dir = PathBuf :: from ( env:: var ( "OUT_DIR" ) . unwrap ( ) ) ;
679
- let outlined_atomics_file = builtins_dir. join ( "aarch64/ lse.S" ) ;
679
+ let outlined_atomics_file = builtins_dir. join ( "aarch64" ) . join ( " lse.S") ;
680
680
println ! ( "cargo:rerun-if-changed={}" , outlined_atomics_file. display( ) ) ;
681
681
682
682
cfg. include ( & builtins_dir) ;
You can’t perform that action at this time.
0 commit comments