[m-rev.] diff: pass -nologo to MSVC by default
Julien Fischer
juliensf at csse.unimelb.edu.au
Wed Oct 12 00:46:40 AEDT 2011
Branches: main, 11.07
Suppress the MSVC banner message, e.g. pass -nologo to cl, by default.
configure.in:
Do the above for mmc --make.
scripts/mgnuc.in:
Do the above for mmake.
Fix a couple of typos.
Julien.
Index: configure.in
===================================================================
RCS file: /home/mercury/mercury1/repository/mercury/configure.in,v
retrieving revision 1.596
diff -u -r1.596 configure.in
--- configure.in 4 Oct 2011 02:37:57 -0000 1.596
+++ configure.in 11 Oct 2011 13:42:16 -0000
@@ -4500,7 +4500,8 @@
msvc*)
CFLAGS_FOR_ANSI=
- CFLAGS_FOR_WARNINGS=
+ # Suppress the MSVC banner message.
+ CFLAGS_FOR_WARNINGS="-nologo"
CFLAGS_FOR_OPT=
CFLAGS_FOR_DEBUG="-Zi"
CFLAGS_FOR_NO_STRICT_ALIASING=
Index: scripts/mgnuc.in
===================================================================
RCS file: /home/mercury/mercury1/repository/mercury/scripts/mgnuc.in,v
retrieving revision 1.140
diff -u -r1.140 mgnuc.in
--- scripts/mgnuc.in 4 Oct 2011 04:49:59 -0000 1.140
+++ scripts/mgnuc.in 11 Oct 2011 13:41:47 -0000
@@ -88,7 +88,7 @@
;;
*cl* | *CL*)
ANSI_OPTS=""
- CHECK_OPTS=""
+ CHECK_OPTS="-nologo" # Suppress the MSVC banner message.
OPT_OPTS=""
DEBUG_OPT="-Zi"
DISABLE_OPTS_OPT="-Od"
@@ -388,7 +388,7 @@
case $trail_segments in
true) TRAIL_OPTS="$TRAIL_OPTS -DMR_TRAIL_SEGMENTS" ;;
esac
- # See the comment in compile_c_file/7 in compiler/comipler_target_code.m
+ # See the comment in compile_c_file/7 in compiler/compile_target_code.m
# for an explanation of this.
case $COMPILER in
gcc) FN_ALIGN_OPTS="-falign-functions=$BYTES_PER_WORD" ;;
@@ -530,7 +530,7 @@
i*86-*|x86_64*)
# The use of stack_pointer in the ASM_JUMP macro defined in
# runtime/mercury_goto.h causes lots of warnings about using possibly
- # uninitialized variables; there's no easy way to supress them except
+ # uninitialized variables; there's no easy way to suppress them except
# by disabling the warning.
case "$COMPILER" in
gcc)
--------------------------------------------------------------------------
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