Skip to content

Commit ab4e6ad

Browse files
committed
Merge #17756: build: remove WINDOWS_BITS from build system
abc147d build: remove WINDOWS_BITS from build system (fanquake) Pull request description: We no longer build/ship 32 bit windows executables. ACKs for top commit: laanwj: LGTM ACK abc147d Tree-SHA512: 7101393cddb7e578740e4c79532dac981eb963630ce63c28dfebf0f5ecde266c1836ac0efd1fd82e6010a6151755ad2cc2b09bc2f67edd7c0c77060ac046a9cd
2 parents e6acd9f + abc147d commit ab4e6ad

File tree

3 files changed

+5
-19
lines changed

3 files changed

+5
-19
lines changed

Makefile.am

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ BITCOIN_QT_BIN=$(top_builddir)/src/qt/$(BITCOIN_GUI_NAME)$(EXEEXT)
2525
BITCOIN_CLI_BIN=$(top_builddir)/src/$(BITCOIN_CLI_NAME)$(EXEEXT)
2626
BITCOIN_TX_BIN=$(top_builddir)/src/$(BITCOIN_TX_NAME)$(EXEEXT)
2727
BITCOIN_WALLET_BIN=$(top_builddir)/src/$(BITCOIN_WALLET_TOOL_NAME)$(EXEEXT)
28-
BITCOIN_WIN_INSTALLER=$(PACKAGE)-$(PACKAGE_VERSION)-win$(WINDOWS_BITS)-setup$(EXEEXT)
28+
BITCOIN_WIN_INSTALLER=$(PACKAGE)-$(PACKAGE_VERSION)-win64-setup$(EXEEXT)
2929

3030
empty :=
3131
space := $(empty) $(empty)

configure.ac

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -525,12 +525,6 @@ case $host in
525525
if test "x$CXXFLAGS_overridden" = "xno"; then
526526
CXXFLAGS="$CXXFLAGS -w"
527527
fi
528-
case $host in
529-
i?86-*) WINDOWS_BITS=32 ;;
530-
x86_64-*) WINDOWS_BITS=64 ;;
531-
*) AC_MSG_ERROR("Could not determine win32/win64 for installer") ;;
532-
esac
533-
AC_SUBST(WINDOWS_BITS)
534528

535529
dnl libtool insists upon adding -nostdlib and a list of objects/libs to link against.
536530
dnl That breaks our ability to build dll's with static libgcc/libstdc++/libssp. Override

share/setup.nsi.in

Lines changed: 4 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
Name "@PACKAGE_NAME@ (@WINDOWS_BITS@-bit)"
1+
Name "@PACKAGE_NAME@ (64-bit)"
22

33
RequestExecutionLevel highest
44
SetCompressor /SOLID lzma
@@ -28,9 +28,7 @@ SetCompressor /SOLID lzma
2828
# Included files
2929
!include Sections.nsh
3030
!include MUI2.nsh
31-
!if "@WINDOWS_BITS@" == "64"
3231
!include x64.nsh
33-
!endif
3432

3533
# Variables
3634
Var StartMenuGroup
@@ -48,12 +46,8 @@ Var StartMenuGroup
4846
!insertmacro MUI_LANGUAGE English
4947

5048
# Installer attributes
51-
OutFile @abs_top_srcdir@/@PACKAGE_TARNAME@-@PACKAGE_VERSION@-win@[email protected]
52-
!if "@WINDOWS_BITS@" == "64"
49+
OutFile @abs_top_srcdir@/@PACKAGE_TARNAME@-@[email protected]
5350
InstallDir $PROGRAMFILES64\Bitcoin
54-
!else
55-
InstallDir $PROGRAMFILES\Bitcoin
56-
!endif
5751
CRCCheck on
5852
XPStyle on
5953
BrandingText " "
@@ -94,7 +88,7 @@ Section -post SEC0001
9488
!insertmacro MUI_STARTMENU_WRITE_BEGIN Application
9589
CreateDirectory $SMPROGRAMS\$StartMenuGroup
9690
CreateShortcut "$SMPROGRAMS\$StartMenuGroup\$(^Name).lnk" $INSTDIR\@BITCOIN_GUI_NAME@@EXEEXT@
97-
CreateShortcut "$SMPROGRAMS\$StartMenuGroup\@PACKAGE_NAME@ (testnet, @WINDOWS_BITS@-bit).lnk" "$INSTDIR\@BITCOIN_GUI_NAME@@EXEEXT@" "-testnet" "$INSTDIR\@BITCOIN_GUI_NAME@@EXEEXT@" 1
91+
CreateShortcut "$SMPROGRAMS\$StartMenuGroup\@PACKAGE_NAME@ (testnet, 64-bit).lnk" "$INSTDIR\@BITCOIN_GUI_NAME@@EXEEXT@" "-testnet" "$INSTDIR\@BITCOIN_GUI_NAME@@EXEEXT@" 1
9892
CreateShortcut "$SMPROGRAMS\$StartMenuGroup\Uninstall $(^Name).lnk" $INSTDIR\uninstall.exe
9993
!insertmacro MUI_STARTMENU_WRITE_END
10094
WriteRegStr HKCU "SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\$(^Name)" DisplayName "$(^Name)"
@@ -138,7 +132,7 @@ Section -un.post UNSEC0001
138132
DeleteRegKey HKCU "SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\$(^Name)"
139133
Delete /REBOOTOK "$SMPROGRAMS\$StartMenuGroup\Uninstall $(^Name).lnk"
140134
Delete /REBOOTOK "$SMPROGRAMS\$StartMenuGroup\$(^Name).lnk"
141-
Delete /REBOOTOK "$SMPROGRAMS\$StartMenuGroup\@PACKAGE_NAME@ (testnet, @WINDOWS_BITS@-bit).lnk"
135+
Delete /REBOOTOK "$SMPROGRAMS\$StartMenuGroup\@PACKAGE_NAME@ (testnet, 64-bit).lnk"
142136
Delete /REBOOTOK "$SMSTARTUP\Bitcoin.lnk"
143137
Delete /REBOOTOK $INSTDIR\uninstall.exe
144138
Delete /REBOOTOK $INSTDIR\debug.log
@@ -160,15 +154,13 @@ SectionEnd
160154
# Installer functions
161155
Function .onInit
162156
InitPluginsDir
163-
!if "@WINDOWS_BITS@" == "64"
164157
${If} ${RunningX64}
165158
; disable registry redirection (enable access to 64-bit portion of registry)
166159
SetRegView 64
167160
${Else}
168161
MessageBox MB_OK|MB_ICONSTOP "Cannot install 64-bit version on a 32-bit system."
169162
Abort
170163
${EndIf}
171-
!endif
172164
FunctionEnd
173165

174166
# Uninstaller functions

0 commit comments

Comments
 (0)