/// Put the linker script somewhere the linker can find it.
Put the linker script somewhere the linker can find it.
Put the linker script somewhere the linker can find it .
fn put_memory_x(out_dir: &str) {
    let dest_path = Path::new(&out_dir);
    let mut f = File::create(&dest_path.join("memory.x")).expect("Could not create file");
    f.write_all(include_bytes!("memory.x"))
        .expect("Could not write file");
    println!("cargo:rustc-link-search={}", dest_path.display());
    println!("cargo:rerun-if-changed=memory.x");
}
fn put_memory_x ( out_dir : & str ) { let dest_path = Path :: new ( & out_dir ) ; let mut f = File :: create ( & dest_path . join ( " " ) ) . expect ( " " ) ; f . write_all ( include_bytes ! ( " " ) ) . expect ( " " ) ; println ! ( " " dest_path display ( ) ) ; println ! ( " " ) ; }
Put the linker script somewhere the linker can find it.
Put the linker script somewhere the linker can find it .
out_dir
&str