mirror of
https://github.com/Mercury-Language/mercury.git
synced 2025-12-08 02:11:55 +00:00
Branches: 11.07, main Improve and update documentation of the MSVC port. Add batch files for invoking mdb and mprof; avoid problem with mercury.bat. README.MS-VisualC: Rewrite this file, it was very much out-of-date. The major changes are: + we now describe how to set up a Cygwin or MSYS shell with MSVC available. + the source distribution now works with MSVC. + a list of the limitations of the MSVC port has been added. + a description of how to set up the compiler so that it works from the Windows command prompt has been added. scripts/mercury/mercury.bat.in: Delete support for the MERCURY_COMPILER and MERCURY_CONFIG_DIR enviorment variables; the handling of them in this batch file doesn't appear to be portable across different versions of Windows and it's more important that this file work in the normal case. (Keeping it simple is the way to ensure this.) scripts/mdb.bat.in: scripts/mprof.bat.in: Templates for invoking mdb and mprof on Windows. (I'm not sure how to reproduce all the functionality of the mdb script in a batch file, so the command line options provided by the mdb script aren't currently replicated here.) configure.in: scripts/Mmakefile: Add the new batch files. scripts/Mercury.config.in: Use the Windows-style installation prefix on Cygwin systems. browser/util.m: Use the conventional name for the I/O state. Use don't-care variables for the I/O state in foreign procs. This avoids suprious warnings from MSVC.
18 lines
601 B
Batchfile
18 lines
601 B
Batchfile
@echo off
|
|
rem @configure_input@
|
|
rem ---------------------------------------------------------------------------
|
|
rem Copyright (C), 2011 The University of Melbourne.
|
|
rem This file may only be copied under the terms of the GNU General
|
|
rem Public License - see the file COPYING in the Mercury distribution.
|
|
rem ---------------------------------------------------------------------------
|
|
rem
|
|
rem mprof - MercuryProfiler
|
|
rem Use `mprof -h' for help.
|
|
rem
|
|
rem ---------------------------------------------------------------------------
|
|
@echo off
|
|
setlocal
|
|
|
|
set MPROF="@PREFIX@\bin\mercury_profile"
|
|
%MPROF% %*
|