comparison build.rs @ 82:73c3f8e3b49d

Don't immediately fail when running build.rs.
author Paul Fisher <paul@pfish.zone>
date Tue, 10 Jun 2025 01:54:37 -0400
parents a8f4718fed5d
children 9fc778c03bff
comparison
equal deleted inserted replaced
81:a8f4718fed5d 82:73c3f8e3b49d
49 #include <security/pam_types.h> 49 #include <security/pam_types.h>
50 "#, 50 "#,
51 ); 51 );
52 52
53 let (pam_impl, bindings) = { 53 let (pam_impl, bindings) = {
54 let bb = linux_builder.generate(); 54 if let Ok(bindings) = linux_builder.generate() {
55 bb.as_ref().unwrap();
56 if let Ok(bindings) = bb {
57 ("linux-pam", bindings) 55 ("linux-pam", bindings)
58 } else if let Ok(bindings) = openpam_builder.generate() { 56 } else if let Ok(bindings) = openpam_builder.generate() {
59 ("openpam", bindings) 57 ("openpam", bindings)
60 } else { 58 } else {
61 panic!("unrecognized PAM implementation") 59 panic!("unrecognized PAM implementation")