mirror of
https://github.com/Mercury-Language/mercury.git
synced 2025-12-16 22:35:41 +00:00
Estimated hours taken: 3 Branches: main Clean up in unused module imports in the Mercury system detected by --warn-unused-imports. analysis/*.m: browser/*.m: deep_profiler/*.m: compiler/*.m: library/*.m: mdbcomp/*.m: profiler/*.m: slice/*.m: Remove unused module imports. Fix some minor departures from our coding standards. analysis/Mercury.options: browser/Mercury.options: deep_profiler/Mercury.options: compiler/Mercury.options: library/Mercury.options: mdbcomp/Mercury.options: profiler/Mercury.options: slice/Mercury.options: Set --no-warn-unused-imports for those modules that are used as packages or otherwise break --warn-unused-imports, e.g. because they contain predicates with both foreign and Mercury clauses and some of the imports only depend on the latter.
31 lines
1.3 KiB
Plaintext
31 lines
1.3 KiB
Plaintext
#-----------------------------------------------------------------------------#
|
|
# Copyright (C) 2002-2006 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-nothing-exported --no-warn-unused-imports
|
|
MCFLAGS-mdb.dice = --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
|
|
|
|
# XXX This line is needed so that `mmake --use-mmc-make libmer_browser'
|
|
# passes `-lmer_mdbcomp' to `mmc --make' in the MLLIBS variable.
|
|
EXTRA_LIBRARIES-libmer_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
|