[m-rev.] diff: support --with-msvcrt on MinGW
Julien Fischer
juliensf at csse.unimelb.edu.au
Tue Oct 4 00:39:18 AEDT 2011
Branches: main, 11.07
scripts/mgnuc.in:
Allow --with-msvcrt to work on MinGW.
Julien.
Index: scripts/mgnuc.in
===================================================================
RCS file: /home/mercury/mercury1/repository/mercury/scripts/mgnuc.in,v
retrieving revision 1.138
diff -u -r1.138 mgnuc.in
--- scripts/mgnuc.in 3 Oct 2011 05:07:21 -0000 1.138
+++ scripts/mgnuc.in 3 Oct 2011 13:34:52 -0000
@@ -316,12 +316,12 @@
use_msvcrt=@USE_MSVCRT@
if test $use_msvcrt = "yes"; then
case $thread_safe in
- # /MD states that we will use the MSVC runtime, the boehm_gc collector
+ # -MD states that we will use the MSVC runtime, the boehm_gc collector
# assumes that the collector has been built as a DLL if we are using
# the MSVC runtime so we need to define GC_NOT_DLL when the collector
# isn't built as a DLL.
- true) MSVCRT_OPTS="/MD" ;;
- false) MSVCRT_OPTS="/DGC_NOT_DLL /MD" ;;
+ true) MSVCRT_OPTS="-MD" ;;
+ false) MSVCRT_OPTS="-DGC_NOT_DLL -MD" ;;
esac
else
MSVCRT_OPTS=""
--------------------------------------------------------------------------
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