Skip to content

Commit

Permalink
Add support for Windows Aarch64
Browse files Browse the repository at this point in the history
Co-authored-by: Cheng Shao <[email protected]>
  • Loading branch information
GulinSS and TerrorJack committed Jan 9, 2025
1 parent 45e3289 commit b406f05
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Cabal/src/Distribution/Compat/Environment.hs
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ setEnv_ key value = withCWString key $ \k -> withCWString value $ \v -> do
{- FOURMOLU_DISABLE -}
# if defined(i386_HOST_ARCH)
# define WINDOWS_CCONV stdcall
# elif defined(x86_64_HOST_ARCH)
# elif defined(x86_64_HOST_ARCH) || defined(aarch64_HOST_ARCH)
# define WINDOWS_CCONV ccall
# else
# error Unknown mingw32 arch
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ getExecutablePath = readSymbolicLink $ "/proc/self/exe"

# if defined(i386_HOST_ARCH)
# define WINDOWS_CCONV stdcall
# elif defined(x86_64_HOST_ARCH)
# elif defined(x86_64_HOST_ARCH) || defined(aarch64_HOST_ARCH)
# define WINDOWS_CCONV ccall
# else
# error Unknown mingw32 arch
Expand Down
8 changes: 8 additions & 0 deletions changelog.d/pr-10705
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
---
synopsis: 'Add support for Windows Aarch64'
packages: [Cabal, cabal-install]
prs: 10705
---

Adds to preprocessor branches the option to support `aarch64_HOST_ARCH` platform on Windows Aarch64 target.
`ccall` convention is used at Aarch64, same as for `x86_64_HOST_ARCH`.

0 comments on commit b406f05

Please sign in to comment.