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`.
26 lines
982 B
Diff
26 lines
982 B
Diff
# What: provide and link MinGW's ARM64 long-double `powl` compatibility shim.
|
|
# Why: Windows ARM64 uses 64-bit long doubles, but LLVM's Bazel source list
|
|
# omits the upstream `powl -> pow` implementation and its default link flags
|
|
# omit the MinGW extension archive that owns the shim.
|
|
|
|
diff --git a/runtimes/mingw/crt_sources.bzl b/runtimes/mingw/crt_sources.bzl
|
|
--- a/runtimes/mingw/crt_sources.bzl
|
|
+++ b/runtimes/mingw/crt_sources.bzl
|
|
@@ -420,4 +420,5 @@
|
|
MINGWEX_ARM64_SRCS = [
|
|
+ "math/arm-common/powl.c",
|
|
"math/sincos.c",
|
|
"math/sincosf.c",
|
|
"math/arm-common/sincosl.c",
|
|
diff --git a/toolchain/args/windows/BUILD.bazel b/toolchain/args/windows/BUILD.bazel
|
|
--- a/toolchain/args/windows/BUILD.bazel
|
|
+++ b/toolchain/args/windows/BUILD.bazel
|
|
@@ -45,5 +45,6 @@ cc_args(
|
|
args = [
|
|
"-L{mingw_import_library_search_path}",
|
|
"-L{mingw_crt_library_search_path}",
|
|
-
|
|
+ "-lmingwex",
|
|
+
|
|
# Clang will respect the user's chosen CRT variant.
|