Mercurial > crates > nonstick
comparison libpam-sys/build.rs @ 128:ad77f2af5ff4
Fix `rustc-check-cfg` in `libpam-sys/build.rs`.
| author | Paul Fisher <paul@pfish.zone> |
|---|---|
| date | Mon, 30 Jun 2025 23:00:53 -0400 |
| parents | c77846f3a979 |
| children | 80c07e5ab22f |
comparison
equal
deleted
inserted
replaced
| 127:c77846f3a979 | 128:ad77f2af5ff4 |
|---|---|
| 6 fn main() { | 6 fn main() { |
| 7 println!("cargo:rustc-link-lib=pam"); | 7 println!("cargo:rustc-link-lib=pam"); |
| 8 let pam_impl_strs: Vec<_> = PamImpl::iter().map(|e| format!("\"{:?}\"", e)).collect(); | 8 let pam_impl_strs: Vec<_> = PamImpl::iter().map(|e| format!("\"{:?}\"", e)).collect(); |
| 9 let pam_impls = pam_impl_strs.join(","); | 9 let pam_impls = pam_impl_strs.join(","); |
| 10 // We use this for ctest. Don't do what we've done; just use cfg_pam_impl. | 10 // We use this for ctest. Don't do what we've done; just use cfg_pam_impl. |
| 11 println!("cargo:check-cfg=cfg(_private_pam_impl_hack, values({pam_impls}))"); | 11 println!("cargo:rustc-check-cfg=cfg(_private_pam_impl_hack, values({pam_impls}))"); |
| 12 println!("cargo:rustc-cfg=_private_pam_impl_hack=\"{:?}\"", PamImpl::CURRENT); | 12 println!("cargo:rustc-cfg=_private_pam_impl_hack=\"{:?}\"", PamImpl::CURRENT); |
| 13 } | 13 } |
