mirror of
https://github.com/openai/codex.git
synced 2026-09-15 12:08:01 +00:00
more hacks
This commit is contained in:
@@ -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",
|
||||
],
|
||||
)
|
||||
|
||||
28
patches/toolchains_llvm_bootstrapped_mingw_ssp.patch
Normal file
28
patches/toolchains_llvm_bootstrapped_mingw_ssp.patch
Normal 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",
|
||||
Reference in New Issue
Block a user