]> git.ipfire.org Git - thirdparty/vim.git/commitdiff
NSIS: Don't install 32-bit dll on ARM64
authorK.Takata <kentkt@csc.jp>
Sat, 16 May 2026 15:51:03 +0000 (15:51 +0000)
committerChristian Brabandt <cb@256bit.org>
Sat, 16 May 2026 15:51:03 +0000 (15:51 +0000)
closes: #20234

Signed-off-by: K.Takata <kentkt@csc.jp>
Signed-off-by: Christian Brabandt <cb@256bit.org>
nsis/gvim.nsi

index 9843ff080d78a14c1b88ef2930548fe5dfbe8b5c..3d480088637e6f82c95332f8c6d741bc7c59314d 100644 (file)
@@ -90,7 +90,7 @@ Unicode true  ; !include defaults to UTF-8 after Unicode True since 3.0 Alpha 2
 # ----------- No configurable settings below this line -----------
 
 ##########################################################
-# Installer Attributes, Including headers, Plugins and etc. 
+# Installer Attributes, Including headers, Plugins and etc.
 
 CRCCheck force
 
@@ -638,21 +638,23 @@ SectionGroupEnd
        !undef LIBRARY_X64
       ${EndIf}
 
-      # Install DLLs for 32-bit gvimext.dll into the GvimExt32 directory.
-      SetOutPath $0\GvimExt32
-      ClearErrors
-      !insertmacro InstallLib DLL NOTSHARED REBOOT_NOTPROTECTED \
-         "${GETTEXT}\gettext32\libintl-8.dll" \
-         "$0\GvimExt32\libintl-8.dll" "$0\GvimExt32"
-      !insertmacro InstallLib DLL NOTSHARED REBOOT_NOTPROTECTED \
-         "${GETTEXT}\gettext32\libiconv-2.dll" \
-         "$0\GvimExt32\libiconv-2.dll" "$0\GvimExt32"
-      # Install libgcc_s_sjlj-1.dll only if it is needed.
-      !if ${INCLUDE_LIBGCC}
-       !if /FileExists "${GETTEXT}\gettext32\libgcc_s_sjlj-1.dll"
-           !insertmacro InstallLib DLL NOTSHARED REBOOT_NOTPROTECTED \
-               "${GETTEXT}\gettext32\libgcc_s_sjlj-1.dll" \
-               "$0\GvimExt32\libgcc_s_sjlj-1.dll" "$0\GvimExt32"
+      !if !${ARM64}
+       # Install DLLs for 32-bit gvimext.dll into the GvimExt32 directory.
+       SetOutPath $0\GvimExt32
+       ClearErrors
+       !insertmacro InstallLib DLL NOTSHARED REBOOT_NOTPROTECTED \
+           "${GETTEXT}\gettext32\libintl-8.dll" \
+           "$0\GvimExt32\libintl-8.dll" "$0\GvimExt32"
+       !insertmacro InstallLib DLL NOTSHARED REBOOT_NOTPROTECTED \
+           "${GETTEXT}\gettext32\libiconv-2.dll" \
+           "$0\GvimExt32\libiconv-2.dll" "$0\GvimExt32"
+       # Install libgcc_s_sjlj-1.dll only if it is needed.
+       !if ${INCLUDE_LIBGCC}
+         !if /FileExists "${GETTEXT}\gettext32\libgcc_s_sjlj-1.dll"
+             !insertmacro InstallLib DLL NOTSHARED REBOOT_NOTPROTECTED \
+                 "${GETTEXT}\gettext32\libgcc_s_sjlj-1.dll" \
+                 "$0\GvimExt32\libgcc_s_sjlj-1.dll" "$0\GvimExt32"
+         !endif
        !endif
       !endif
     ${EndIf}