Base: codex-main originale (prima del fork aKode)
This commit is contained in:
25
patches/llvm_windows_arm64_powl.patch
Normal file
25
patches/llvm_windows_arm64_powl.patch
Normal file
@@ -0,0 +1,25 @@
|
||||
# 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.
|
||||
Reference in New Issue
Block a user