From 0a95dac39bbfb3aaedd99442a3ed2324afd97625 Mon Sep 17 00:00:00 2001 From: Julian Taylor Date: Sun, 1 Apr 2018 17:59:15 +0200 Subject: DOC: note that NDEBUG should be set when OPT should increase optimization --- doc/source/user/building.rst | 2 ++ 1 file changed, 2 insertions(+) (limited to 'doc/source/user/building.rst') diff --git a/doc/source/user/building.rst b/doc/source/user/building.rst index b98f89c2d..76eb48487 100644 --- a/doc/source/user/building.rst +++ b/doc/source/user/building.rst @@ -132,6 +132,8 @@ Supplying additional compiler flags Additional compiler flags can be supplied by setting the ``OPT``, ``FOPT`` (for Fortran), and ``CC`` environment variables. +When providing options that should improve the performance of the code ensure +that you also set ``-DNDEBUG`` so that debugging code is not executed. Building with ATLAS support -- cgit v1.2.1