changeset 338:4f35d5ab70cb

Win: Use PLATFORM to detect target CPU using Visual Studio 2015.
author Brian Smith <brian@dbsoft.org>
date Tue, 30 Jun 2020 23:30:27 -0500
parents 9f34b53e9be8
children f5cf55a750ff
files makefile.vc
diffstat 1 files changed, 6 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/makefile.vc	Sun Jun 28 16:22:16 2020 -0500
+++ b/makefile.vc	Tue Jun 30 23:30:27 2020 -0500
@@ -13,11 +13,17 @@
 # Configure settings for the target platform
 #	Default to x86 if not specified
 #
+!if "$(TARGET_CPU)" == ""
 !if "$(VSCMD_ARG_TGT_ARCH)" == ""
+!if "$(PLATFORM)" == ""
 TARGET_CPU=x86
 !else
+TARGET_CPU=$(PLATFORM)
+!endif
+!else
 TARGET_CPU=$(VSCMD_ARG_TGT_ARCH)
 !endif
+!endif
 
 !if "$(TARGET_CPU)" == "x86"
 PLATFORM_DEF = -DWIN32