mirror of
git://git.proxmox.com/git/perlmod.git
synced 2025-08-06 21:49:21 +03:00
16 lines
499 B
Rust
16 lines
499 B
Rust
fn main() {
|
|
// get perl's MULTIPLICITY flag:
|
|
// perl -MConfig -e 'print $Config{usemultiplicity}'
|
|
let perl_multiplicity = std::process::Command::new("perl")
|
|
.arg("-MConfig")
|
|
.arg("-e")
|
|
.arg("print $Config{usemultiplicity}")
|
|
.output()
|
|
.expect("failed to get perl usemultiplicity flag");
|
|
|
|
// pass the multiplicity cfg flag:
|
|
if perl_multiplicity.stdout == b"define" {
|
|
println!("cargo:rustc-cfg=perlmod=\"multiplicity\"");
|
|
}
|
|
}
|