mirror of
https://github.com/openai/codex.git
synced 2026-10-28 18:58:46 +00:00
48 lines
1.1 KiB
Diff
48 lines
1.1 KiB
Diff
diff --git a/runtimes/mingw/BUILD.bazel b/runtimes/mingw/BUILD.bazel
|
|
index ed12aa8..12f3507 100644
|
|
--- a/runtimes/mingw/BUILD.bazel
|
|
+++ b/runtimes/mingw/BUILD.bazel
|
|
@@ -386,14 +386,42 @@ 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",
|
|
+)
|
|
+
|
|
+# Prebuilt MSVC archives can carry /DEFAULTLIB:libcmt.lib and
|
|
+# /DEFAULTLIB:oldnames.lib directives. Provide MinGW-compatible stand-ins so
|
|
+# lld can satisfy the lookup under windows-gnullvm.
|
|
+stub_library(
|
|
+ name = "libcmt",
|
|
+)
|
|
+
|
|
+copy_file(
|
|
+ name = "oldnames",
|
|
+ src = ":moldname",
|
|
+ out = "liboldnames.a",
|
|
+ visibility = ["//visibility:public"],
|
|
+)
|
|
+
|
|
copy_to_directory(
|
|
name = "mingw_crt_library_search_directory",
|
|
srcs = [
|
|
+ ":libcmt",
|
|
":m",
|
|
":mingw32",
|
|
":mingwex",
|
|
":moldname",
|
|
+ ":oldnames",
|
|
":pthread",
|
|
+ ":ssp",
|
|
+ ":ssp_nonshared",
|
|
":stdc++",
|
|
":uuid",
|
|
":winpthread",
|