Skip to content

Commit bf598e9

Browse files
GulinSSTerrorJack
andcommitted
Add support for Windows ARM
Co-authored-by: Cheng Shao <[email protected]>
1 parent ed1e4d7 commit bf598e9

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Cabal/src/Distribution/Compat/Environment.hs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ setEnv_ key value = withCWString key $ \k -> withCWString value $ \v -> do
6363
{- FOURMOLU_DISABLE -}
6464
# if defined(i386_HOST_ARCH)
6565
# define WINDOWS_CCONV stdcall
66-
# elif defined(x86_64_HOST_ARCH)
66+
# elif defined(x86_64_HOST_ARCH) || defined(aarch64_HOST_ARCH)
6767
# define WINDOWS_CCONV ccall
6868
# else
6969
# error Unknown mingw32 arch

cabal-install/src/Distribution/Client/Compat/ExecutablePath.hs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ getExecutablePath = readSymbolicLink $ "/proc/self/exe"
123123

124124
# if defined(i386_HOST_ARCH)
125125
# define WINDOWS_CCONV stdcall
126-
# elif defined(x86_64_HOST_ARCH)
126+
# elif defined(x86_64_HOST_ARCH) || defined(aarch64_HOST_ARCH)
127127
# define WINDOWS_CCONV ccall
128128
# else
129129
# error Unknown mingw32 arch

0 commit comments

Comments
 (0)