]> git.ipfire.org Git - thirdparty/git.git/commitdiff
msvc: do handle builds on Windows/ARM64
authorJohannes Schindelin <johannes.schindelin@gmx.de>
Wed, 23 Apr 2025 08:01:46 +0000 (08:01 +0000)
committerJunio C Hamano <gitster@pobox.com>
Wed, 23 Apr 2025 16:13:53 +0000 (09:13 -0700)
Git for Windows/ARM64 settled on using `clang` to compile `git.exe`, and
hence needs to run in a system where `MSYSTEM` is set to `CLANGARM64`
and the prefix to use is `/clangarm64`.

We already did that in the `MINGW` arm, i.e. for regular Git for Windows
builds using MINGW GCC (or `clang`'s shim pretending to be GCC), now it
is time to do the same in the MS Visual C part.

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
[jc: adjust config.mak.uname for c18400c6]
Signed-off-by: Junio C Hamano <gitster@pobox.com>
config.mak.uname

index 3ec82d95e680bb325401dda9a2bab7f9ec4f0d19..4ef453ebcd194583e4393e968e2a5d86eca7ce91 100644 (file)
@@ -432,7 +432,11 @@ ifeq ($(uname_S),Windows)
         ifeq (MINGW32,$(MSYSTEM))
                prefix = /mingw32
         else
-               prefix = /mingw64
+                ifeq (CLANGARM64,$(MSYSTEM))
+                       prefix = /clangarm64
+                else
+                       prefix = /mingw64
+                endif
         endif
        # Prepend MSVC 64-bit tool-chain to PATH.
        #