diff libpam-sys/libpam-sys-impls/build.rs @ 127:c77846f3a979

GET CTEST WORKING. This will verify that the functions we're exporting are correct. It has been a nightmare.
author Paul Fisher <paul@pfish.zone>
date Mon, 30 Jun 2025 22:56:26 -0400
parents 39760dfc9b3b
children
line wrap: on
line diff
--- a/libpam-sys/libpam-sys-impls/build.rs	Mon Jun 30 21:52:10 2025 -0400
+++ b/libpam-sys/libpam-sys-impls/build.rs	Mon Jun 30 22:56:26 2025 -0400
@@ -5,6 +5,9 @@
 //!     into the `__pam_impl_enum__` macro.
 //!  2. It detects the current PAM implementation and sets an env var for
 //!     the macros in `libpam-sys-impl`.
+//!
+//! We need to have this detection here for `#[cfg_pam_impl]` to work properly
+//! when exported to downstream crates.
 
 use dlopen::raw::Library;
 use proc_macro2::TokenStream;