Skip to content

Commit 099ab4c

Browse files
committed
NMake Makefiles: Support ARM64 Windows builds
This will make the NMake Makefiles capable of building ARM64 binaries of glibmm and giomm, which can be used on Windows 10 on ARM systems.
1 parent a6a0c47 commit 099ab4c

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

MSVC_NMake/detectenv-msvc.mak

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,8 @@ _HASH=^#
6868
&& ![echo PLAT=Win32 >> vercl.x] \
6969
&& ![echo $(_HASH)elif defined(_M_AMD64) >> vercl.x] \
7070
&& ![echo PLAT=x64 >> vercl.x] \
71+
&& ![echo $(_HASH)elif defined(_M_ARM64) >> vercl.x] \
72+
&& ![echo PLAT=arm64 >> vercl.x] \
7173
&& ![echo $(_HASH)endif >> vercl.x] \
7274
&& ![cl -nologo -TC -P vercl.x $(ERRNUL)]
7375
!include vercl.i
@@ -145,6 +147,8 @@ CFLAGS_ADD = /MDd /Od
145147

146148
!if "$(PLAT)" == "x64"
147149
LDFLAGS_ARCH = /machine:x64
150+
!elseif "$(PLAT)" == "arm64"
151+
LDFLAGS_ARCH = /machine:arm64
148152
!else
149153
LDFLAGS_ARCH = /machine:x86
150154
!endif

0 commit comments

Comments
 (0)