diff options
author | Joe Mistachkin <joe@mistachkin.com> | 2017-08-13 22:05:25 (GMT) |
---|---|---|
committer | Joe Mistachkin <joe@mistachkin.com> | 2017-08-13 22:05:25 (GMT) |
commit | 9b1b7036b0de2150a62088d4681e966d721fc012 (patch) | |
tree | f1407abdf076dfc855ea19667458ce99f40a5659 /win/makefile.vc | |
parent | ed3d8a5c300d7029bc85bc0c012386ae933e230f (diff) | |
download | tcl-9b1b7036b0de2150a62088d4681e966d721fc012.zip tcl-9b1b7036b0de2150a62088d4681e966d721fc012.tar.gz tcl-9b1b7036b0de2150a62088d4681e966d721fc012.tar.bz2 |
Support cross-compiling Tcl for 'Win32 on ARM' using Visual Studio.
Diffstat (limited to 'win/makefile.vc')
-rw-r--r-- | win/makefile.vc | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/win/makefile.vc b/win/makefile.vc index ada08cc..40de392 100644 --- a/win/makefile.vc +++ b/win/makefile.vc @@ -121,7 +121,7 @@ the build instructions. # nodep = Turns off compatibility macros to ensure the core
# isn't being built with deprecated functions.
#
-# MACHINE=(ALPHA|AMD64|IA64|IX86)
+# MACHINE=(ARM|AMD64|IA64|IX86)
# Set the machine type used for the compiler, linker, and
# resource compiler. This hook is needed to tell the tools
# when alternate platforms are requested. IX86 is the default
@@ -484,9 +484,16 @@ cdebug = -Zi -Od $(DEBUGFLAGS) cdebug = -Zi -WX $(DEBUGFLAGS)
!endif
+### Common compiler options that are architecture specific
+!if "$(MACHINE)" == "ARM"
+carch = -D_ARM_WINAPI_PARTITION_DESKTOP_SDK_AVAILABLE
+!else
+carch =
+!endif
+
### Declarations common to all compiler options
cwarn = $(WARNINGS) -D _CRT_SECURE_NO_DEPRECATE -D _CRT_NONSTDC_NO_DEPRECATE
-cflags = -nologo -c $(COMPILERFLAGS) $(cwarn) -Fp$(TMP_DIR)^\
+cflags = -nologo -c $(COMPILERFLAGS) $(carch) $(cwarn) -Fp$(TMP_DIR)^\
!if $(MSVCRT)
!if $(DEBUG) && !$(UNCHECKED)
|