Update build.rs

This commit is contained in:
guangzong 2023-11-14 23:53:53 +00:00
parent b4367d58c0
commit f14fbd9cf9

View File

@ -2,7 +2,6 @@
use cmake::Config;
fn main() {
println!("cargo:hello2=/path/to/includes");
// Tell Cargo to tell rustc to link the C++ library.
println!("cargo:rustc-link-lib=static=stm32u5");
@ -14,10 +13,8 @@ fn main() {
// get the out dir of dependcy `cortex-m`
//
// println!("cargo:include=/includes") // provide DEP_U5_INCLUDE var
println!("cargo:include={}/include", dst.to_str().unwrap());
println!("cargo:include=/path/to/includes");
println!("cargo:hello=/path/to/includes");
println!("cargo:include=/includes") // provide DEP_U5_INCLUDE var
}