Chromium Code Reviews| Index: build/config/aix/BUILD.gn |
| diff --git a/build/config/aix/BUILD.gn b/build/config/aix/BUILD.gn |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..5498191d673987336a4456e1933d6294f4386230 |
| --- /dev/null |
| +++ b/build/config/aix/BUILD.gn |
| @@ -0,0 +1,51 @@ |
| +# 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.
|
| +# Use of this source code is governed by a BSD-style license that can be |
| +# found in the LICENSE file. |
| + |
| +import("//build/config/sysroot.gni") |
| +import("//build/config/sanitizers/sanitizers.gni") |
| +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.
|
| + |
| +# This is included by reference in the //build/config/compiler config that |
| +# is applied to all targets. It is here to separate out the logic. |
| +# |
| +config("compiler") { |
| + # These flags are shared between the C compiler and linker. |
| + defines = [ |
| + "_LINUX_SOURCE_COMPAT=1", |
| + "__STDC_FORMAT_MACROS", |
| + "_ALL_SOURCE=1", |
| + ] |
| + |
| + cflags = [ |
| + "-Wall", |
| + "-Wno-unused-parameter", |
| + "-pthread", |
| + "-Wmissing-field-initializers", |
| + "-Wno-uninitialized", |
| + "-mcpu=power5+", |
| + "-mfprnd", |
| + "-mno-popcntb", |
| + "-maix64", |
| + "-fdata-sections", |
| + "-ffunction-sections", |
| + "-O3", |
| + |
| + # "-Werror" |
| + # We need to find a way to fix the TOC warnings if we want to enable this. |
| + ] |
| + |
| + cflags_cc = [ |
| + "-std=gnu++11", |
| + "-fno-rtti", |
| + "-fno-exceptions", |
| + "-Wno-narrowing", |
| + "-Wnon-virtual-dtor", |
| + ] |
| + |
| + ldflags = [ |
| + "-pthread", |
| + "-maix64", |
| + "-Wl,-bbigtoc", |
| + ] |
| +} |