mirror of
https://github.com/esp-rs/esp-idf-hal.git
synced 2025-09-30 05:41:12 +00:00
Compatibility with CMake build
This commit is contained in:
parent
e441b44daf
commit
a273bfc554
8
build.rs
8
build.rs
@ -2,11 +2,11 @@
|
||||
fn main() -> anyhow::Result<()> {
|
||||
embuild::build::CfgArgs::output_propagated("ESP_IDF")?;
|
||||
|
||||
// Will not be available when built a CMake-first or a PIO-first build
|
||||
// Will not be available when built with a CMake-first or a PIO-first build
|
||||
// We need to output these only when building the examples' binaries anyway
|
||||
embuild::build::LinkArgs::try_from_env("ESP_IDF")
|
||||
.ok()
|
||||
.map(|args| args.output());
|
||||
if let Some(args) = embuild::build::LinkArgs::try_from_env("ESP_IDF").ok() {
|
||||
args.output();
|
||||
}
|
||||
|
||||
Ok(())
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user