diff libpam-sys/build.rs @ 131:a632a8874131 default tip

Get all the Linux-PAM functions into libpam-sys, and get tests right.
author Paul Fisher <paul@pfish.zone>
date Wed, 02 Jul 2025 02:24:21 -0400
parents 80c07e5ab22f
children
line wrap: on
line diff
--- a/libpam-sys/build.rs	Tue Jul 01 06:11:43 2025 -0400
+++ b/libpam-sys/build.rs	Wed Jul 02 02:24:21 2025 -0400
@@ -8,9 +8,6 @@
     let pam_impl_strs: Vec<_> = PamImpl::iter().map(|e| format!("\"{:?}\"", e)).collect();
     let pam_impls = pam_impl_strs.join(",");
     // We use this for ctest. Don't do what we've done; just use cfg_pam_impl.
-    println!("cargo:rustc-check-cfg=cfg(_private_pam_impl_hack, values({pam_impls}))");
-    println!(
-        "cargo:rustc-cfg=_private_pam_impl_hack=\"{:?}\"",
-        PamImpl::CURRENT
-    );
+    println!("cargo:rustc-check-cfg=cfg(_hack_impl, values({pam_impls}))");
+    println!("cargo:rustc-cfg=_hack_impl=\"{:?}\"", PamImpl::CURRENT);
 }