Mercurial > dwindows
diff makefile.vc @ 2080:8f08d4c9d3fc
Win: Visual Studio 2015 sets PLATFORM=x64 in 64bit intel mode so
use that to detect the build mode, if possible. Older versions
will default to 32bit mode, so set TARGET_CPU=x64 if neccessary.
More updates to the readme.
author | bsmith@81767d24-ef19-dc11-ae90-00e081727c95 |
---|---|
date | Mon, 25 May 2020 13:03:01 +0000 |
parents | f02266370e74 |
children | 3144912829e2 |
line wrap: on
line diff
--- a/makefile.vc Mon May 25 04:42:10 2020 +0000 +++ b/makefile.vc Mon May 25 13:03:01 2020 +0000 @@ -29,8 +29,12 @@ # !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