Skip to content

Commit

Permalink
fixup! fixup! fixup! fixup! fixup! fixup! fixup! fixup! fixup! fixup!…
Browse files Browse the repository at this point in the history
… fixup! fixup! fixup! fixup! fixup! fixup! fixup! fixup! fixup! fixup! fixup! fixup! fixup! feat: add esp-idf compilation feature
  • Loading branch information
pulsastrix committed Jun 13, 2024
1 parent 4f0509c commit c154f0a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions libcoap-sys/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -50,9 +50,9 @@ fn main() {
let apostrophe_remover = regex::Regex::new(r##"^"(?<content>.*)"$"##).unwrap();
let esp_clang_args = arg_splitter.split(
esp_include_path.args.as_str()
).map(|x| apostrophe_remover.replace(x.trim(), "$content"));
bindgen_builder = bindgen_builder.clang_args(esp_clang_args).clang_arg("-target").clang_arg("xtensa").clang_arg("-DESP_PLATFORM");
for arg in esp_clang_args {
).map(|x| apostrophe_remover.replace(x.trim(), "$content")).collect::<Vec<String>>::();
bindgen_builder = bindgen_builder.clang_args(&esp_clang_args).clang_arg("-target").clang_arg("xtensa").clang_arg("-DESP_PLATFORM");
for arg in &esp_clang_args {
println!("cargo:warning={}", arg);
}

Expand Down

0 comments on commit c154f0a

Please sign in to comment.