diff options
author | jan.nijtmans <nijtmans@users.sourceforge.net> | 2022-02-13 22:29:11 (GMT) |
---|---|---|
committer | jan.nijtmans <nijtmans@users.sourceforge.net> | 2022-02-13 22:29:11 (GMT) |
commit | 12315d87b5f80a7528bd95f37286f5a657734a1d (patch) | |
tree | 1552f28436347043cd8be9069b6e389b0a9c294f | |
parent | c26dc231a7444dec93a9c2c66c9808d993a84675 (diff) | |
download | tcl-12315d87b5f80a7528bd95f37286f5a657734a1d.zip tcl-12315d87b5f80a7528bd95f37286f5a657734a1d.tar.gz tcl-12315d87b5f80a7528bd95f37286f5a657734a1d.tar.bz2 |
Make a start supporting aarch64-w64-mingw32-clang (WIP)
-rw-r--r-- | compat/zlib/win64-arm/libz.dll.a | bin | 0 -> 13002 bytes | |||
-rwxr-xr-x | compat/zlib/win64-arm/zlib1.dll | bin | 84480 -> 92672 bytes | |||
-rw-r--r-- | win/README | 16 | ||||
-rw-r--r-- | win/rules.vc | 9 | ||||
-rwxr-xr-x | win/x86_64-w64-mingw32-nmakehlp.exe | bin | 0 -> 25600 bytes |
5 files changed, 9 insertions, 16 deletions
diff --git a/compat/zlib/win64-arm/libz.dll.a b/compat/zlib/win64-arm/libz.dll.a Binary files differnew file mode 100644 index 0000000..b6cbde7 --- /dev/null +++ b/compat/zlib/win64-arm/libz.dll.a diff --git a/compat/zlib/win64-arm/zlib1.dll b/compat/zlib/win64-arm/zlib1.dll Binary files differindex 2abef88..7d08dd3 100755 --- a/compat/zlib/win64-arm/zlib1.dll +++ b/compat/zlib/win64-arm/zlib1.dll @@ -21,26 +21,27 @@ In order to compile Tcl for Windows, you need the following: and Visual C++ 6 or newer + (win32 or win64, for IX86/AMD64/ARM64) or Linux + MinGW-w64 [https://www.mingw-w64.org/] - (win32 or win64) + (win32 or win64, for IX86/AMD64) or Cygwin + MinGW-w64 [https://cygwin.com/install.html] - (win32 or win64) + (win32 or win64, for IX86/AMD64) or Darwin + MinGW-w64 [https://www.mingw-w64.org/] - (win32 or win64) + (win32 or win64, for IX86/AMD64) or Msys + MinGW-w64 [https://www.mingw-w64.org/] - (win32 or win64) + (win32 or win64, for IX86/AMD64) In practice, this release is built with Visual C++ 6.0 and the TEA @@ -56,13 +57,6 @@ using it, are in the comments of "makefile.vc". A quick example would be: There is also a Developer Studio workspace and project file, too, if you would like to use them. -If you want to Cross-compile with Visual Studio (e.g. for X86 or ARM64 -targets, but running on AMD64), first set up the environment for -your host machine and compile nmakehlp.exe: - C:\tcl_source\win\>nmake -f makefile.vc nmakehlp -Then go to your cross-compile environment and run the nmake -command again for whatever you want to build. - If you are building with Linux, Cygwin or Msys, you can use the configure script that lives in the win subdirectory. The Linux/Cygwin/Msys based configure/build process works just like the UNIX one, so you will want diff --git a/win/rules.vc b/win/rules.vc index b68b6b4..22aa735 100644 --- a/win/rules.vc +++ b/win/rules.vc @@ -77,7 +77,7 @@ NEED_TK_SOURCE = 0 # 2. Figure out our build structure in terms of the directory, whether
# we are building Tcl or an extension, etc.
# 3. Determine the compiler and linker versions
-# 4. Build the nmakehlp helper application
+# 4. Build the nmakehlp helper application (if not cross-compiling)
# 5. Determine the supported compiler options and features
# 6. Parse the OPTS macro value for user-specified build configuration
# 7. Parse the STATS macro value for statistics instrumentation
@@ -548,13 +548,12 @@ NMAKEHLPC = $(_TCLDIR)\win\nmakehlp.c !endif # NMAKEHLPC
-nmakehlp:
- $(cc32) -nologo "$(NMAKEHLPC)" -link -subsystem:console
-
# We always build nmakehlp even if it exists since we do not know
# what source it was built from.
!if "$(MACHINE)" == "$(NATIVE_ARCH)"
-!if [$(cc32) -nologo "$(NMAKEHLPC)" -link -subsystem:console > nul]
+!if [$(cc32) -nologo "$(NMAKEHLPC)" -link -subsystem:console >NUL]
+#else
+!if [COPY "$(NMAKEHLPC)$(NMAKEHLPC:nmakehlp.c=x86_64-w64-mingw32-nmakehlp.exe)" nmakehlp.exe]
!endif
!endif
diff --git a/win/x86_64-w64-mingw32-nmakehlp.exe b/win/x86_64-w64-mingw32-nmakehlp.exe Binary files differnew file mode 100755 index 0000000..2564ec9 --- /dev/null +++ b/win/x86_64-w64-mingw32-nmakehlp.exe |