Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 # Copyright (c) 2014 The Native Client Authors. All rights reserved. | 1 # Copyright (c) 2014 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 import("//build/config/nacl/config.gni") | 5 import("//build/config/nacl/config.gni") |
| 6 | 6 |
| 7 # Native Client Definitions | 7 # Native Client Definitions |
| 8 config("nacl_defines") { | 8 config("nacl_defines") { |
| 9 defines = [ | 9 defines = [ |
| 10 "_DEFAULT_SOURCE=1", | |
| 11 "_BSD_SOURCE=1", | |
| 12 "_POSIX_C_SOURCE=199506", | 10 "_POSIX_C_SOURCE=199506", |
| 13 "_XOPEN_SOURCE=600", | 11 "_XOPEN_SOURCE=600", |
| 14 "_GNU_SOURCE=1", | 12 "_GNU_SOURCE=1", |
| 13 "_DARWIN_C_SOURCE=1", | |
|
Mark Seaborn
2015/10/20 00:21:00
It seems like some of the reasoning from the commi
| |
| 15 "__STDC_LIMIT_MACROS=1", | 14 "__STDC_LIMIT_MACROS=1", |
| 16 ] | 15 ] |
| 17 } | 16 } |
| 18 | 17 |
| 19 config("nexe_defines") { | 18 config("nexe_defines") { |
| 20 defines = [ | 19 defines = [ |
| 21 "DYNAMIC_ANNOTATIONS_ENABLED=1", | 20 "DYNAMIC_ANNOTATIONS_ENABLED=1", |
| 22 "DYNAMIC_ANNOTATIONS_PREFIX=NACL_", | 21 "DYNAMIC_ANNOTATIONS_PREFIX=NACL_", |
| 23 ] | 22 ] |
| 24 } | 23 } |
| (...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 86 "-Os", | 85 "-Os", |
| 87 | 86 |
| 88 # These are omitted from non-IRT libraries to keep the libraries | 87 # These are omitted from non-IRT libraries to keep the libraries |
| 89 # themselves small. | 88 # themselves small. |
| 90 "-ffunction-sections", | 89 "-ffunction-sections", |
| 91 "-fdata-sections", | 90 "-fdata-sections", |
| 92 ] | 91 ] |
| 93 | 92 |
| 94 ldflags = [ "-Wl,--gc-sections" ] | 93 ldflags = [ "-Wl,--gc-sections" ] |
| 95 } | 94 } |
| OLD | NEW |