From 6a6b7eda4e00140898272d3fb44b03a10cbdb0b1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Filip=20Zyba=C5=82a?= Date: Wed, 11 Feb 2026 14:37:57 +0100 Subject: [PATCH] TBX-15645 Add patch for rules_cc for bug that prevents cross-compilation of MSVC targets GitOrigin-RevId: 853c98446b09a4da00e50b426fbde8cd91852ca3 --- build/rules_cc-windows_support.patch | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 build/rules_cc-windows_support.patch diff --git a/build/rules_cc-windows_support.patch b/build/rules_cc-windows_support.patch new file mode 100644 index 000000000000..ff893b210eeb --- /dev/null +++ b/build/rules_cc-windows_support.patch @@ -0,0 +1,19 @@ +Subject: [PATCH] Apply default compile flags passed as attrs in Windows MSVC toolchain config +--- +Index: cc/private/toolchain/windows_cc_toolchain_config.bzl +IDEA additional info: +Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP +<+>UTF-8 +=================================================================== +diff --git a/cc/private/toolchain/windows_cc_toolchain_config.bzl b/cc/private/toolchain/windows_cc_toolchain_config.bzl +--- a/cc/private/toolchain/windows_cc_toolchain_config.bzl (revision 285fdce428cf3c5cf8e35c9f0ac4247e8e27ec58) ++++ b/cc/private/toolchain/windows_cc_toolchain_config.bzl (revision 4725b6bc7cab46b59e1b2915c7f1f9c8d585e9e9) +@@ -778,7 +778,7 @@ + "/wd4291", + "/wd4250", + "/wd4996", +- ], ++ ] + ctx.attr.default_compile_flags, + ), + ], + ),