Skip to content

Commit

Permalink
unconditionally ignore includes
Browse files Browse the repository at this point in the history
  • Loading branch information
workingjubilee committed Nov 11, 2023
1 parent 932c8e5 commit f799a99
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pgrx-pg-sys/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -746,7 +746,7 @@ fn run_bindgen(
// eprintln!("include tree: {}", core::str::from_utf8(&output).unwrap());
// panic!("death");

ldflags.push_str("--include-directory=/usr/lib/clang/15/include");
// ldflags.push_str("--include-directory=/usr/lib/clang/15/include");
};
let mut binder = bindgen::Builder::default();
binder = add_blocklists(binder);
Expand All @@ -758,7 +758,7 @@ fn run_bindgen(
.clang_arg(ldflags)
.clang_args(extra_bindgen_clang_args(pg_config)?)
.clang_args(pg_target_include_flags(major_version, pg_config)?)
.detect_include_paths(target_env_tracked("PGRX_BINDGEN_NO_DETECT_INCLUDES").is_none())
.detect_include_paths(false)
.parse_callbacks(Box::new(PgrxOverrides::default()))
// The NodeTag enum is closed: additions break existing values in the set, so it is not extensible
.rustified_non_exhaustive_enum("NodeTag")
Expand Down

0 comments on commit f799a99

Please sign in to comment.