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! feat: add esp-idf compilation feature
  • Loading branch information
pulsastrix committed Jun 13, 2024
1 parent 651aad9 commit bacabc7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion libcoap-sys/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,8 @@ fn main() {

let esp_include_path = embuild::build::CInclArgs::try_from_env("ESP_IDF").unwrap();
let arg_splitter = regex::Regex::new(r##"(?:[^\\]"[^"]*[^\\]")?(\s)"##).unwrap();
bindgen_builder = bindgen_builder.clang_args(arg_splitter.split(esp_include_path.args.as_str()).map(|x| x.trim_matches('"')));
let apostrophe_remover = regex::Regex::new(r##"^"(?<content>.*)"$"##).unwrap();
bindgen_builder = bindgen_builder.clang_args(arg_splitter.split(esp_include_path.args.as_str()).map(|x| apostrophe_remover.replace(x.trim(), "$content"));

let mut dtls_backend = Option::None;
if cfg!(feature = "dtls") {
Expand Down

0 comments on commit bacabc7

Please sign in to comment.