Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(184)

Side by Side Diff: build/config/aix/BUILD.gn

Issue 2815453004: For building v8 using gn on aix_ppc64, linux_s390x and linux_ppc64. (Closed)
Patch Set: Created 3 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(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 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698