[m-rev.] diff: Visual C and MSYS fixes
Julien Fischer
juliensf at csse.unimelb.edu.au
Fri Jul 15 18:09:59 AEST 2011
Branches: main, 11.07
Improve support for building the Visual C port in MSYS.
configure.in:
scripts/mgnuc.in:
Use the -OPT form for cl command line options
instead of the /OPT form. The latter confuses
the MSYS shell.
Julien.
Index: configure.in
===================================================================
RCS file: /home/mercury/mercury1/repository/mercury/configure.in,v
retrieving revision 1.580
diff -u -r1.580 configure.in
--- configure.in 15 Jul 2011 05:35:36 -0000 1.580
+++ configure.in 15 Jul 2011 08:05:54 -0000
@@ -985,7 +985,7 @@
LINK_LIB_SUFFIX=".lib"
LINK_OPT_SEP="/link"
- OBJFILE_OPT="/Fo"
+ OBJFILE_OPT="-Fo"
AR="lib"
ARFLAGS=""
AR_LIBFILE_OPT="/OUT:"
@@ -4470,7 +4470,7 @@
CFLAGS_FOR_ANSI=
CFLAGS_FOR_WARNINGS=
CFLAGS_FOR_OPT=
- CFLAGS_FOR_DEBUG="/Zi"
+ CFLAGS_FOR_DEBUG="-Zi"
CFLAGS_FOR_NO_STRICT_ALIASING=
# Using the MSVC compiler implies that we must use
Index: scripts/mgnuc.in
===================================================================
RCS file: /home/mercury/mercury1/repository/mercury/scripts/mgnuc.in,v
retrieving revision 1.135
diff -u -r1.135 mgnuc.in
--- scripts/mgnuc.in 4 Jul 2011 07:45:11 -0000 1.135
+++ scripts/mgnuc.in 15 Jul 2011 08:05:56 -0000
@@ -80,7 +80,7 @@
ANSI_OPTS=""
CHECK_OPTS=""
OPT_OPTS=""
- DEBUG_OPT="/Zi"
+ DEBUG_OPT="-Zi"
COMPILER=cl
;;
*)
--------------------------------------------------------------------------
mercury-reviews mailing list
Post messages to: mercury-reviews at csse.unimelb.edu.au
Administrative Queries: owner-mercury-reviews at csse.unimelb.edu.au
Subscriptions: mercury-reviews-request at csse.unimelb.edu.au
--------------------------------------------------------------------------
More information about the reviews
mailing list