Update build.rs

This commit is contained in:
guangzong 2023-11-14 23:46:57 +00:00
parent 4c04a6f996
commit b4367d58c0

View File

@ -2,6 +2,7 @@
use cmake::Config; use cmake::Config;
fn main() { fn main() {
println!("cargo:hello2=/path/to/includes");
// Tell Cargo to tell rustc to link the C++ library. // Tell Cargo to tell rustc to link the C++ library.
println!("cargo:rustc-link-lib=static=stm32u5"); println!("cargo:rustc-link-lib=static=stm32u5");
@ -15,5 +16,8 @@ fn main() {
// //
// println!("cargo:include=/includes") // provide DEP_U5_INCLUDE var // println!("cargo:include=/includes") // provide DEP_U5_INCLUDE var
println!("cargo:include={}/include", dst.to_str().unwrap()); println!("cargo:include={}/include", dst.to_str().unwrap());
println!("cargo:include=/path/to/includes");
println!("cargo:hello=/path/to/includes");
} }