2025-10-16 21:40 UTC+0200 Aleksander Czajczynski (hb fki.pl)
* config/global.mk
* follow up to previous, define __ARCH64BIT__ for .prg files
if applicable during first stage done by GNU Make
* consider Alpha a 64-bit CPU too when it's a cross-build target
(untested)
* utils/hbmk2/hbmk2.prg
* updated stored list of Visual Studio (2013-2022) versions to C comp
revisions, which could be used in .hbp files HB_COMP_VER macro
; https://learn.microsoft.com/en-us/cpp/overview/compiler-versions
more detailed versioning available if someone is interested in that
please submit a patch that would translate C compiler path to
version according to the linked rules - MSVC now has rolling
releases
This commit is contained in:
@@ -1775,8 +1775,18 @@ ifneq ($(HB_HOST_PLAT)$(HB_HOST_CPU),$(HB_PLATFORM)$(HB_CPU))
|
||||
ifneq ($(filter $(HB_CPU),x86 arm),)
|
||||
HB_PRGFLAGS += -D__ARCH32BIT__
|
||||
else
|
||||
ifneq ($(filter $(HB_CPU),x86_64 ia64),)
|
||||
ifneq ($(filter $(HB_CPU),x86_64 ia64 sparc64 ppc64 arm64),)
|
||||
# NOTE: MIPS64 is not yet distinctly recognized by the build system
|
||||
HB_PRGFLAGS += -D__ARCH64BIT__
|
||||
else
|
||||
ifeq ($(HB_CPU),alpha))
|
||||
# Alpha began as 64-bit CPU, only WinNT releases were limited to 32-bit
|
||||
ifeq ($(HB_PLATFORM),win)
|
||||
HB_PRGFLAGS += -D__ARCH32BIT__
|
||||
else
|
||||
HB_PRGFLAGS += -D__ARCH64BIT__
|
||||
endif
|
||||
endif
|
||||
endif
|
||||
endif
|
||||
endif
|
||||
|
||||
Reference in New Issue
Block a user