diff --git a/build.rs b/build.rs index 65765d0..21e959b 100644 --- a/build.rs +++ b/build.rs @@ -39,6 +39,10 @@ fn main() -> Result<(), Box> { make.env_remove("PROFILE").arg("-C").arg(&out_dir).arg("build"); + if env::var("TARGET").unwrap().ends_with("-musl") { + make.env("CC", "musl-gcc"); + } + if env::var("PROFILE").unwrap() == "debug" { make.arg("DEBUG=1"); }