build: remove MSVC from Windows Bazel build actions

This commit is contained in:
Adam Perry
2026-06-22 19:10:01 +00:00
parent df81e569e1
commit fbecab78a8
19 changed files with 242 additions and 421 deletions
+12
View File
@@ -0,0 +1,12 @@
load("@rules_cc//cc:cc_test.bzl", "cc_test")
cc_test(
name = "stack-protector-probe",
srcs = ["stack_protector_probe.c"],
copts = ["-fstack-protector-all"],
tags = ["manual"],
target_compatible_with = [
"@platforms//os:windows",
"@rules_rs//rs/experimental/platforms/constraints:windows_gnullvm",
],
)
@@ -0,0 +1,11 @@
#if !defined(_WIN32)
#error "this probe must be compiled for Windows"
#endif
__attribute__((noinline)) static int protected_value(int value) {
volatile char buffer[32] = {0};
buffer[0] = (char)value;
return buffer[0];
}
int main(void) { return protected_value(7) == 7 ? 0 : 1; }