Files
mercury/README.MS-Windows
Peter Wang 6b1f89831e Let Mercury be built with a MinGW cross-compiler.
Branches: main

Let Mercury be built with a MinGW cross-compiler.

tools/configure_mingw_cross:
	Add shell script to prepare for cross-compilation.

README.MinGW-cross:
	Document how to use the shell script.

configure.in:
Mmake.common.in:
	Set a new variable CROSS_COMPILING.

	Set FULLARCH and BUILD_C_PROGS_FOR_BUILD_SYSTEM variables
	to be passed to the Boehm GC build system.

	Use $host-ar for AR when cross-compiling.

m4/mercury.m4:
	Determine gcc version with gcc -dumpversion instead of building
	a program and running it.

	Don't run test for mercury_cv_cc_type if set explicitly.

Mmake.workspace:
	Use the default c2init and mkinit when cross-compiling.
	The copies in the util directory would not be usable then.

boehm_gc/Mmakefile:
	Pass configured values of AR, RANLIB down to sub-make.

boehm_gc/Makefile.direct:
boehm_gc/build_atomic_ops.sh:
	Use configured value from Mmake.common for HOSTCC.

	Pass --host when configuring libatomic_ops.

util/Mmakefile:
	Make tools with .exe suffixes on Windows.

Mmakefile:
	Use the bootstrap compiler to build libgrades when cross-compiling.

	Conform to changed target names in the util directory.

compiler/Mmakefile:
deep_profiler/Mmakefile:
profiler/Mmakefile:
slice/Mmakefile:
	Conform to changed target names in the util directory.

Makefile:
	Clean .exe files on Windows.
2012-01-09 00:35:41 +00:00

51 lines
1.6 KiB
Plaintext

This file documents the port of Mercury to MS Windows.
-----------------------------
Supported versions of Windows
-----------------------------
Mercury has been tested with the following versions of Windows:
* Windows XP SP3
* Windows 7
* Windows Server 2008 R2
It should also work with Windows XP SP2 and Windows Vista but we have
not tested it with those.
In the past Mercury worked with Windows, 95, 98, ME, 2000, and NT but we no
longer actively maintain support for those versions.
---------------------------
Building Mercury on Windows
---------------------------
The Mercury build process requires the use of a number of Unix tools such as sh
and make. This means that a Unix emulation environment is required to build
Mercury on Windows.
Two such environments are supported:
1. Cygwin (www.cygwin.com). For instructions on how to install Mercury
under Cygwin see README.Cygwin.
2. MSYS (www.mingw.org). For instructions on how to install Mercury
under MSYS see README.MinGW.
Mercury can also be built using the MS Visual C compiler, although one of
the above environments is still required for the build process. See
README.MS-VisualC for instructions on how to build Mercury with the
MS Visual C compiler.
NOTE: while a Unix emulation environment is required to build Mercury on
Windows, one is NOT required to use Mercury on Windows.
-------------------------------------
Building Mercury for Windows on Linux
-------------------------------------
Alternatively, you can cross-compile Mercury on Linux with a MinGW
cross-compiler. See README.MinGW-cross.