haku2: make build.rs spit out unknown targets

This commit is contained in:
りき萌 2025-06-13 20:33:18 +02:00
parent 48d03699bd
commit 354d49d927

View file

@ -28,7 +28,10 @@ fn main() -> Result<(), Box<dyn Error>> {
let target = match &target[..] {
"x86_64-unknown-linux-gnu" => "x86_64-linux-gnu",
_ => &target,
other => {
eprintln!("warning: unknown target {other:?}");
&target
}
};
let output = Command::new("zig")