diff --git a/pgrx-pg-sys/build.rs b/pgrx-pg-sys/build.rs index 3fa3e4bf6c..dd82562503 100644 --- a/pgrx-pg-sys/build.rs +++ b/pgrx-pg-sys/build.rs @@ -719,6 +719,8 @@ fn run_bindgen( binder = add_derives(binder); let bindings = binder .header(include_h.display().to_string()) + .clang_arg("-v") + .clang_arg("-H") .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())