OLD | NEW |
---|---|
(Empty) | |
1 # Copyright 2015 The Chromium Authors. All rights reserved. | |
Michael Achenbach
2017/04/18 13:46:03
nit: 2017
rayb
2017/04/25 00:41:03
Done.
| |
2 # Use of this source code is governed by a BSD-style license that can be | |
3 # found in the LICENSE file. | |
4 | |
5 import("//build/config/sysroot.gni") | |
6 import("//build/config/sanitizers/sanitizers.gni") | |
7 import("//build/toolchain/toolchain.gni") | |
Michael Achenbach
2017/04/18 13:46:03
Not all these imports look necessary.
rayb
2017/04/25 00:41:03
Done.
| |
8 | |
9 # This is included by reference in the //build/config/compiler config that | |
10 # is applied to all targets. It is here to separate out the logic. | |
11 # | |
12 config("compiler") { | |
13 # These flags are shared between the C compiler and linker. | |
14 defines = [ | |
15 "_LINUX_SOURCE_COMPAT=1", | |
16 "__STDC_FORMAT_MACROS", | |
17 "_ALL_SOURCE=1", | |
18 ] | |
19 | |
20 cflags = [ | |
21 "-Wall", | |
22 "-Wno-unused-parameter", | |
23 "-pthread", | |
24 "-Wmissing-field-initializers", | |
25 "-Wno-uninitialized", | |
26 "-mcpu=power5+", | |
27 "-mfprnd", | |
28 "-mno-popcntb", | |
29 "-maix64", | |
30 "-fdata-sections", | |
31 "-ffunction-sections", | |
32 "-O3", | |
33 | |
34 # "-Werror" | |
35 # We need to find a way to fix the TOC warnings if we want to enable this. | |
36 ] | |
37 | |
38 cflags_cc = [ | |
39 "-std=gnu++11", | |
40 "-fno-rtti", | |
41 "-fno-exceptions", | |
42 "-Wno-narrowing", | |
43 "-Wnon-virtual-dtor", | |
44 ] | |
45 | |
46 ldflags = [ | |
47 "-pthread", | |
48 "-maix64", | |
49 "-Wl,-bbigtoc", | |
50 ] | |
51 } | |
OLD | NEW |