Files
mercury/browser/Mercury.options
Zoltan Somogyi 0c7af82fc6 Use += instead of = to set MCFLAGS-modulename.
*/Mercury.options:
    Specify module-specific Mercury compiler flags using

        MCFLAGS-modulename += options

    instead of

        MCFLAGS-modulename = options

    because unlike the latter, the former allows Mmake.params files
    to add other options.
2023-10-06 00:04:07 +11:00

36 lines
1.8 KiB
Plaintext

#-----------------------------------------------------------------------------#
# vim: ts=4 sw=4 expandtab
#-----------------------------------------------------------------------------#
# Copyright (C) 2002-2006, 2010 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.
#-----------------------------------------------------------------------------#
# Mercury.options - module-specific flags for Mmake and `mmc --make'.
#-----------------------------------------------------------------------------#
MCFLAGS-mer_browser += --no-warn-unused-imports --no-warn-nothing-exported
MCFLAGS-mdb += --no-warn-unused-imports
# XXX Disable higher order specialization for declarative_edt since this
# optimization has a suspected bug that mdb.declarative_edt.revise_root/3
# exposes.
MCFLAGS-mdb.declarative_edt += --no-optimize-higher-order
# This is for bootstrapping rotd-2005-10-17.
MCFLAGS-mdb.declarative_analyser += --no-optimize-unused-args
MCFLAGS-mdb.declarative_execution += --no-optimize-unused-args
# The affected predicates are far from speed-critical.
MCFLAGS-mdb.help += --no-optimize-constructor-last-call
MCFLAGS-mdb.interactive_query += --no-optimize-constructor-last-call
MCFLAGS-mdb.parse += --no-optimize-constructor-last-call
MCFLAGS-mdb.sized_pretty += --no-optimize-constructor-last-call
# XXX This line is needed so that `mmake --use-mmc-make libmer_browser'
# passes `-lmer_mdbcomp' to `mmc --make' in the MLLIBS variable.
LIBRARIES-mer_browser = mer_mdbcomp
# Whereas these lines are needed for plain `mmake'.
EXTRA_LIBRARIES-libmer_browser.so = mer_mdbcomp
EXTRA_LIBRARIES-libmer_browser.dylib = mer_mdbcomp