summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChun-wei Fan <fanchunwei@src.gnome.org>2020-07-08 16:07:52 +0800
committerChun-wei Fan <fanchunwei@src.gnome.org>2020-07-08 16:12:49 +0800
commitd99eb7b1c5b8a97173cc3dd7dd9e6f748a45c2e3 (patch)
tree3b0376dfbcdd3de3e7b7d632a12145746c590fbf
parentf76461f7b87435d47cbbe3d293abce5ce540d530 (diff)
downloadsigc++-d99eb7b1c5b8a97173cc3dd7dd9e6f748a45c2e3.tar.gz
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.
-rw-r--r--MSVC_NMake/detectenv-msvc.mak4
1 files changed, 4 insertions, 0 deletions
diff --git a/MSVC_NMake/detectenv-msvc.mak b/MSVC_NMake/detectenv-msvc.mak
index b537cce..c408714 100644
--- a/MSVC_NMake/detectenv-msvc.mak
+++ b/MSVC_NMake/detectenv-msvc.mak
@@ -68,6 +68,8 @@ _HASH=^#
&& ![echo PLAT=Win32 >> vercl.x] \
&& ![echo $(_HASH)elif defined(_M_AMD64) >> vercl.x] \
&& ![echo PLAT=x64 >> vercl.x] \
+ && ![echo $(_HASH)elif defined(_M_ARM64) >> vercl.x] \
+ && ![echo PLAT=arm64 >> vercl.x] \
&& ![echo $(_HASH)endif >> vercl.x] \
&& ![cl -nologo -TC -P vercl.x $(ERRNUL)]
!include vercl.i
@@ -129,6 +131,8 @@ CFLAGS_ADD = /MDd /Od
!if "$(PLAT)" == "x64"
LDFLAGS_ARCH = /machine:x64
+!elseif "$(PLAT)" == "arm64"
+LDFLAGS_ARCH = /machine:arm64
!else
LDFLAGS_ARCH = /machine:x86
!endif