From 260c545c7e675322b81ae92c8a0346f44dcc4067 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=8E=8B=E5=AE=87=E9=80=B8?= Date: Thu, 3 Apr 2025 11:48:38 +0800 Subject: [PATCH] Add cygwin support for ctest --- ctest/src/lib.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ctest/src/lib.rs b/ctest/src/lib.rs index 084be8bf02fe3..be032e52e6f6f 100644 --- a/ctest/src/lib.rs +++ b/ctest/src/lib.rs @@ -1144,6 +1144,8 @@ fn default_cfg(target: &str) -> Vec<(String, Option)> { ("aix", "unix", "") } else if target.contains("hurd") { ("hurd", "unix", "gnu") + } else if target.contains("cygwin") { + ("cygwin", "unix", "") } else { panic!("unknown os/family: {}", target) };