Skip to content

Commit d99eb7b

Browse files
committed
NMake Makefiles: Support ARM64 Windows builds
This will make the NMake Makefiles capable of building ARM64 binaries of libsigc++, which can be used on Windows 10 on ARM systems.
1 parent f76461f commit d99eb7b

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
@@ -129,6 +131,8 @@ CFLAGS_ADD = /MDd /Od
129131

130132
!if "$(PLAT)" == "x64"
131133
LDFLAGS_ARCH = /machine:x64
134+
!elseif "$(PLAT)" == "arm64"
135+
LDFLAGS_ARCH = /machine:arm64
132136
!else
133137
LDFLAGS_ARCH = /machine:x86
134138
!endif

0 commit comments

Comments
 (0)