mirror of
https://github.com/pchuan98/codex.git
synced 2026-07-01 00:31:56 +08:00
c1f8b280b5
The custom Windows argument-comment-lint job was temporarily moved to `windows-2022` in #28940 after hermetic LLVM source extraction failed on the newer runner. This takes the upstream extraction fix so the job can return to the intended custom runner. This upgrades `llvm` to `0.7.9` and `rules_cc` to `0.2.18`, refreshes the module lock, rebases the remaining Windows and custom libc++ patches, drops the obsolete symlink-extraction workaround, and restores the `windows-x64` runner configuration. Validation: - Verified all LLVM patches apply cleanly against the `0.7.9` source. - Built `@llvm-project//compiler-rt:clang_rt.builtins.static`.
51 lines
1.3 KiB
Diff
51 lines
1.3 KiB
Diff
# What: provide MinGW compatibility archives required by Windows gnullvm links.
|
|
# Why: clang and prebuilt MSVC archives can request these names even though the
|
|
# hermetic MinGW runtime does not publish them by default.
|
|
|
|
diff --git a/runtimes/mingw/BUILD.bazel b/runtimes/mingw/BUILD.bazel
|
|
--- 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",
|