* am/guilec (GUILE_WARNINGS): * am/bootstrap.am (GUILE_WARNINGS): Explictly default to -W1. * bootstrap/Makefile.am (GUILE_WARNINGS): Set to -Wnone, as the meaning of "no -W flags" has changed to be effectively -W1. * module/scripts/compile.scm (%options): Adapt to parse -Wnone, -W2, and so on. (parse-args): Default to (default-warning-level). (show-warning-help): Add more warning help. (compile): Pass #:warning-level.
40 lines
1.7 KiB
Makefile
40 lines
1.7 KiB
Makefile
## Process this file with automake to produce Makefile.in.
|
|
##
|
|
## Copyright (C) 2009, 2010, 2011, 2012, 2013,
|
|
## 2014, 2015, 2018, 2020 Free Software Foundation, Inc.
|
|
##
|
|
## This file is part of GUILE.
|
|
##
|
|
## GUILE is free software; you can redistribute it and/or modify it
|
|
## under the terms of the GNU Lesser General Public License as
|
|
## published by the Free Software Foundation; either version 3, or
|
|
## (at your option) any later version.
|
|
##
|
|
## GUILE is distributed in the hope that it will be useful, but
|
|
## WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
## GNU Lesser General Public License for more details.
|
|
##
|
|
## You should have received a copy of the GNU Lesser General Public
|
|
## License along with GUILE; see the file COPYING.LESSER. If not,
|
|
## write to the Free Software Foundation, Inc., 51 Franklin Street,
|
|
## Fifth Floor, Boston, MA 02110-1301 USA
|
|
|
|
|
|
GUILE_WARNINGS = -Wnone
|
|
# Loading eval.go happens before boot and therefore before modules are
|
|
# resolved. For some reason if compiled without resolve-primitives,
|
|
# attempts to resolve primitives at boot fail; weird. Should fix this
|
|
# but in the meantime we turn on primitive resolution (which normally
|
|
# only happens at -O2).
|
|
GUILE_OPTIMIZATIONS = -O1 -Oresolve-primitives
|
|
|
|
include $(top_srcdir)/am/bootstrap.am
|
|
|
|
# We must build the evaluator first, so that we can be sure to control
|
|
# the stack. Then, we build the syntax-case macro expander before the
|
|
# rest, in order to speed up parallel builds.
|
|
ice-9/psyntax-pp.go: | ice-9/eval.go
|
|
|
|
$(filter-out ice-9/eval.go ice-9/psyntax-pp.go, $(GOBJECTS)): | \
|
|
ice-9/psyntax-pp.go
|