Daniel Erat | a7e6103 | 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() { | ||||
14 | use cros-debug || append-flags -DNDEBUG | ||||
15 | } |