comparison makefile.vc @ 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 a02ce34692f0
children bf34d9f9dabe
comparison
equal deleted inserted replaced
1927:5c82413f82ae 1928:e07a1e176995
26 # 26 #
27 # Configure settings for the target platform 27 # Configure settings for the target platform
28 # Default to x86 if not specified 28 # Default to x86 if not specified
29 # 29 #
30 !if "$(TARGET_CPU)" == "" 30 !if "$(TARGET_CPU)" == ""
31 !if "$(VSCMD_ARG_TGT_ARCH)" == ""
31 TARGET_CPU=x86 32 TARGET_CPU=x86
33 !else
34 TARGET_CPU=$(VSCMD_ARG_TGT_ARCH)
35 !endif
32 !endif 36 !endif
33 37
34 !if "$(TARGET_CPU)" == "x86" 38 !if "$(TARGET_CPU)" == "x86"
35 PLATFORM_DEF = -DWIN32 39 PLATFORM_DEF = -DWIN32
36 PLATFORM_NAME = win32 40 PLATFORM_NAME = win32