Skip to content

Commit

Permalink
add linker script
Browse files Browse the repository at this point in the history
  • Loading branch information
kiffie committed Jul 3, 2023
1 parent 34e805d commit ca94b1e
Show file tree
Hide file tree
Showing 3 changed files with 460 additions and 1 deletion.
2 changes: 1 addition & 1 deletion mips-rt/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "mips-rt"
version = "0.3.1"
version = "0.3.2"
authors = ["Stephan <kiffie@mailbox.org"]
edition = "2021"
repository = "https://github.com/kiffie/pic32-rs"
Expand Down
1 change: 1 addition & 0 deletions mips-rt/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ use std::path::PathBuf;
fn main() {
let out_dir = &PathBuf::from(env::var("OUT_DIR").unwrap());
fs::copy("native_lib/libmips-rt.a", out_dir.join("libmips-rt.a")).unwrap();
fs::copy("link.x", out_dir.join("link.x")).unwrap();
println!("cargo:rustc-link-search=native={}", out_dir.display());
println!("cargo:rustc-link-lib=static=mips-rt");
}
Loading

0 comments on commit ca94b1e

Please sign in to comment.