mirror of
https://github.com/Mercury-Language/mercury.git
synced 2026-04-15 09:23:44 +00:00
Use consistent indentation. Sort many blocks of module-specific MCFLAGS settings by module name. Add XXXs about some questionable options.
44 lines
2.1 KiB
Bash
44 lines
2.1 KiB
Bash
#---------------------------------------------------------------------------#
|
|
# vim: ts=4 sw=4 expandtab ft=sh
|
|
#---------------------------------------------------------------------------#
|
|
# Copyright (C) 2002-2006, 2010 The University of Melbourne.
|
|
# Copyright (C) 2015-2016, 2023-2025 The Mercury team.
|
|
# 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
|
|
|
|
MCFLAGS-mdb.name_mangle += --no-warn-inferred-erroneous
|
|
MCFLAGS-mdb.interactive_query += --no-warn-inferred-erroneous
|
|
|
|
MCFLAGS-mdb.browser_info += --no-warn-unneeded-final-statevars
|
|
|
|
MCFLAGS-mdb += --no-warn-include-and-non-include
|
|
|
|
# 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
|