Don't use -o when creating executables with MSVC.

Branches: main, 11.07

Don't use -o when creating executables with MSVC.  (For some silly
reason its been deprecated and we have to use -Fe instead.)
Note that mmc --make already uses -Fe with MSVC, this change only
affects mmake.

configure.in:
scripts/Mmake.vars.in:
	Define a new variable, EXEFILE_OPT, whose variable gives the option
	used to name executables.

compiler/write_deps_file.m:
	Use the above variable instead of hardcoding the option to be
	"-o".
This commit is contained in:
Julien Fischer
2011-10-04 02:37:57 +00:00
parent d032aaafcc
commit 6a4c211a9d
2 changed files with 5 additions and 1 deletions

View File

@@ -1,5 +1,5 @@
#-----------------------------------------------------------------------------#
# Copyright (C) 1996-2008, 2010 The University of Melbourne.
# Copyright (C) 1996-2008, 2010-2011 The University of Melbourne.
# This file may only be copied under the terms of the GNU General
# Public License - see the file COPYING in the Mercury distribution.
#-----------------------------------------------------------------------------#
@@ -758,6 +758,7 @@ LN_S = @LN_S@
# any trailing spaces in @OBJFILE_OPT@
empty_string=
OBJFILE_OPT=@OBJFILE_OPT@$(empty_string)
EXEFILE_OPT=@EXEFILE_OPT@$(empty_string)
EXT_FOR_EXE=@EXEEXT@
O=@OBJ_SUFFIX@