Update build.rs
This commit is contained in:
parent
4c04a6f996
commit
b4367d58c0
4
build.rs
4
build.rs
@ -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");
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user