Daniel Erat | 0888183 | 2010-09-13 14:41:40 -0700 | [diff] [blame] | 1 | # Copyright (c) 2010 The Chromium OS Authors. All rights reserved. |
| 2 | # Distributed under the terms of the GNU General Public License v2 |
| 3 | |
| 4 | # |
| 5 | # Original Author: The Chromium OS Authors <chromium-os-dev@chromium.org> |
| 6 | # Purpose: Set -DNDEBUG if the cros-debug USE flag is not defined. |
| 7 | # |
| 8 | |
| 9 | inherit flag-o-matic |
| 10 | |
| 11 | IUSE="cros-debug" |
| 12 | |
| 13 | cros-debug-add-NDEBUG() { |
Mike Frysinger | f04f91e | 2014-08-26 11:21:46 -0400 | [diff] [blame] | 14 | use cros-debug || append-cppflags -DNDEBUG |
Daniel Erat | 0888183 | 2010-09-13 14:41:40 -0700 | [diff] [blame] | 15 | } |