OLD | NEW |
1 # Copyright (c) 2012 The Native Client Authors. All rights reserved. | 1 # Copyright (c) 2012 The Native Client Authors. All rights reserved. |
2 # Use of this source code is governed by a BSD-style license that can be | 2 # Use of this source code is governed by a BSD-style license that can be |
3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
4 | 4 |
5 { | 5 { |
6 'variables': { | 6 'variables': { |
7 # These flags are only included in the NaCl standalone build. | 7 # These flags are only included in the NaCl standalone build. |
8 # They won't get included when NaCl is built as part of another | 8 # They won't get included when NaCl is built as part of another |
9 # project, such as Chrome. We don't necessarily want to enable | 9 # project, such as Chrome. We don't necessarily want to enable |
10 # these flags for Chrome source that is built as NaCl untrusted | 10 # these flags for Chrome source that is built as NaCl untrusted |
11 # code. | 11 # code. |
12 'nacl_default_compile_flags': [ | 12 'nacl_default_compile_flags': [ |
13 # TODO(mseaborn): Move -Werror to untrusted.gypi so that it | |
14 # applies to Chrome source built as untrusted code. We have | |
15 # -Werror as a NaCl-side only flag at the moment because some | |
16 # Chrome code produces warnings when built with PNaCl/ARM. | |
17 # See http://code.google.com/p/nativeclient/issues/detail?id=3108 | |
18 '-Werror', | |
19 '-Wundef', | 13 '-Wundef', |
20 ], | 14 ], |
21 }, | 15 }, |
22 } | 16 } |
OLD | NEW |