about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorDaniel Paoliello <danpao@microsoft.com>2025-06-21 12:59:21 -0700
committerDaniel Paoliello <danpao@microsoft.com>2025-06-23 14:34:08 -0700
commit81a7cb67182d76f1ac77e1454d6a796fba17a4ce (patch)
tree839fcba9ea3c960de9e8d07686fcaa2d6d492745 /src
parent42245d34d22ade32b3f276dcf74deb826841594c (diff)
downloadrust-81a7cb67182d76f1ac77e1454d6a796fba17a4ce.tar.gz
rust-81a7cb67182d76f1ac77e1454d6a796fba17a4ce.zip
Enable reproducible-build-2 for Windows
Diffstat (limited to 'src')
-rw-r--r--src/tools/run-make-support/src/lib.rs2
-rw-r--r--src/tools/run-make-support/src/targets.rs6
2 files changed, 7 insertions, 1 deletions
diff --git a/src/tools/run-make-support/src/lib.rs b/src/tools/run-make-support/src/lib.rs
index 947f815fd69..67d8c351a59 100644
--- a/src/tools/run-make-support/src/lib.rs
+++ b/src/tools/run-make-support/src/lib.rs
@@ -83,7 +83,7 @@ pub use run::{cmd, run, run_fail, run_with_args};
 
 /// Helpers for checking target information.
 pub use targets::{
-    apple_os, is_aix, is_darwin, is_msvc, is_windows, is_windows_gnu, is_win7, llvm_components_contain,
+    apple_os, is_aix, is_darwin, is_msvc, is_windows, is_windows_gnu, is_windows_msvc, is_win7, llvm_components_contain,
     target, uname,
 };
 
diff --git a/src/tools/run-make-support/src/targets.rs b/src/tools/run-make-support/src/targets.rs
index 86edbdf750b..1ab2e2ab2be 100644
--- a/src/tools/run-make-support/src/targets.rs
+++ b/src/tools/run-make-support/src/targets.rs
@@ -28,6 +28,12 @@ pub fn is_windows_gnu() -> bool {
     target().ends_with("windows-gnu")
 }
 
+/// Check if target is windows-msvc.
+#[must_use]
+pub fn is_windows_msvc() -> bool {
+    target().ends_with("windows-msvc")
+}
+
 /// Check if target is win7.
 #[must_use]
 pub fn is_win7() -> bool {