mirror of
https://github.com/Mercury-Language/mercury.git
synced 2025-12-09 10:52:24 +00:00
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:
@@ -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@
|
||||
|
||||
Reference in New Issue
Block a user