more hacks

This commit is contained in:
David Zbarsky
2026-02-10 09:24:49 -05:00
parent 0e76aa3ec1
commit 017374c6c8
2 changed files with 29 additions and 0 deletions

View File

@@ -5,6 +5,7 @@ single_version_override(
patch_strip = 1,
patches = [
"//patches:toolchains_llvm_bootstrapped_mingw_cfguard.patch",
"//patches:toolchains_llvm_bootstrapped_mingw_ssp.patch",
"//patches:toolchains_llvm_bootstrapped_resource_dir.patch",
],
)

View File

@@ -0,0 +1,28 @@
--- a/runtimes/mingw/BUILD.bazel
+++ b/runtimes/mingw/BUILD.bazel
@@ -284,6 +284,16 @@
# TODO(zbarsky): Hack for now until we have real libstdc++ support...
stub_library(
name = "stdc++",
+)
+
+# Clang may inject -lssp and -lssp_nonshared for windows-gnu links.
+# Provide compatibility archives in the MinGW runtime search directory.
+stub_library(
+ name = "ssp",
+)
+
+stub_library(
+ name = "ssp_nonshared",
)
copy_to_directory(
@@ -293,6 +303,8 @@
":mingwex",
":moldname",
":stdc++",
+ ":ssp",
+ ":ssp_nonshared",
":ucrt",
":ucrtbase",
":ucrtbased",