changeset 1928:e07a1e176995

Try to get the target CPU from the Visual Studio environment, so you don't need to set TARGET_CPU.
author bsmith@81767d24-ef19-dc11-ae90-00e081727c95
date Tue, 30 May 2017 22:27:46 +0000
parents 5c82413f82ae
children 25da63f0eddc
files makefile.vc
diffstat 1 files changed, 4 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/makefile.vc	Thu Apr 20 12:57:03 2017 +0000
+++ b/makefile.vc	Tue May 30 22:27:46 2017 +0000
@@ -28,7 +28,11 @@
 #	Default to x86 if not specified
 #
 !if "$(TARGET_CPU)" == ""
+!if "$(VSCMD_ARG_TGT_ARCH)" == ""
 TARGET_CPU=x86
+!else
+TARGET_CPU=$(VSCMD_ARG_TGT_ARCH)
+!endif
 !endif
 
 !if "$(TARGET_CPU)" == "x86"