OLD | NEW |
(Empty) | |
| 1 # -*- python -*- |
| 2 # Copyright (c) 2014 The Native Client Authors. All rights reserved. |
| 3 # Use of this source code is governed by a BSD-style license that can be |
| 4 # found in the LICENSE file. |
| 5 |
| 6 Import('env') |
| 7 |
| 8 # This component implements NaCl IRT interfaces in terms of POSIX APIs. |
| 9 if not env.Bit('posix'): |
| 10 Return() |
| 11 |
| 12 # Since we are only targeting Unix, not Windows/MSVC, we can use C99 |
| 13 # language features. |
| 14 env.FilterOut(CFLAGS='-Wdeclaration-after-statement') |
| 15 # Complaints about unused function arguments are too noisy. |
| 16 env.Append(CCFLAGS='-Wno-unused-parameter') |
| 17 # TODO(mseaborn): We can enforce -Wstrict-prototypes after the uses of |
| 18 # DEFINE_STUB/USE_STUB are gone. |
| 19 env.FilterOut(CFLAGS='-Wstrict-prototypes') |
| 20 |
| 21 env.ComponentLibrary('irt_nonsfi', ['irt_interfaces.c']) |
OLD | NEW |