mirror of
https://github.com/Mercury-Language/mercury.git
synced 2026-04-21 12:23:44 +00:00
*/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.
36 lines
1.8 KiB
Plaintext
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
|