Download patches/llvm_windows_arm64_powl.patch from SaylorTwift/codex: direct link, hf CLI and curl.
- Browser
- Download file 982 Bytes
-
https://huggingface.co/SaylorTwift/codex/resolve/main/patches/llvm_windows_arm64_powl.patch
- Command line
-
hf download hf://SaylorTwift/codex/patches/llvm_windows_arm64_powl.patch
-
curl -L -o llvm_windows_arm64_powl.patch https://huggingface.co/SaylorTwift/codex/resolve/main/patches/llvm_windows_arm64_powl.patch
982 Bytes
| # 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 | |
| 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 | |
| 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. | |