File tree Expand file tree Collapse file tree 2 files changed +19
-1
lines changed
doc/release/upcoming_changes Expand file tree Collapse file tree 2 files changed +19
-1
lines changed Original file line number Diff line number Diff line change
1
+ Add options to quiet build configuration and build with ``-Werror ``
2
+ -------------------------------------------------------------------
3
+ Added two new configuration options. During the ``build_src `` subcommand, as
4
+ part of configuring NumPy, the files ``_numpyconfig.h `` and ``config.h `` are
5
+ created by probing support for various runtime functions and routines.
6
+ Previously, the very verbose compiler output during this stage clouded more
7
+ important information. By default the output is silenced. Running ``runtests.py
8
+ --debug-configure `` will add ``-v `` to the ``build_src `` subcommand, which
9
+ will restore the previous behaviour.
10
+
11
+ Adding ``CFLAGS=-Werror `` to turn warnings into errors would trigger errors
12
+ during the configuration. Now ``runtests.py --warn-error `` will add
13
+ ``--warn-error `` to the ``build `` subcommand, which will percolate to the
14
+ ``build_ext `` and ``build_lib `` subcommands. This will add the compiler flag
15
+ to those stages and turn compiler warnings into errors while actually building
16
+ NumPy itself, avoiding the ``build_src `` subcommand compiler calls.
17
+
18
+ (`gh-14527 <https://github.com/numpy/numpy/pull/14527 >`__)
Original file line number Diff line number Diff line change @@ -79,7 +79,7 @@ def initialize_options(self):
79
79
self .swig_opts = None
80
80
self .swig_cpp = None
81
81
self .swig = None
82
- self .verbose = False
82
+ self .verbose = None
83
83
84
84
def finalize_options (self ):
85
85
self .set_undefined_options ('build' ,
You can’t perform that action at this time.
0 commit comments