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

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

Issue 1285243004: Rename & rework is_chromeos (Closed) Base URL: https://chromium.googlesource.com/native_client/src/native_client.git@master
Patch Set: Created 5 years, 4 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
1 # Copyright (c) 2013 The Chromium Authors. All rights reserved. 1 # Copyright (c) 2013 The Chromium 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("../android/config.gni") 5 import("../android/config.gni")
6 import("//native_client/build/config/chrome_build.gni") 6 import("//native_client/build/config/chrome_build.gni")
7 if (current_cpu == "arm") { 7 if (current_cpu == "arm") {
8 import("../arm.gni") 8 import("../arm.gni")
9 } 9 }
10 if (is_posix) { 10 if (is_posix) {
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
71 if (is_mac) { 71 if (is_mac) {
72 cflags += [ "-fstack-protector-all" ] 72 cflags += [ "-fstack-protector-all" ]
73 } else if (is_linux) { 73 } else if (is_linux) {
74 cflags += [ 74 cflags += [
75 "-fstack-protector", 75 "-fstack-protector",
76 "--param=ssp-buffer-size=4", 76 "--param=ssp-buffer-size=4",
77 ] 77 ]
78 } 78 }
79 79
80 # Linker warnings. 80 # Linker warnings.
81 if (!(is_chromeos && current_cpu == "arm") && !is_mac) { 81 if (!(is_chromeos_ui && current_cpu == "arm") && !is_mac) {
82 # TODO(jochen): Enable this on chromeos on arm. http://crbug.com/356580 82 # TODO(jochen): Enable this on chromeos on arm. http://crbug.com/356580
83 ldflags += [ "-Wl,--fatal-warnings" ] 83 ldflags += [ "-Wl,--fatal-warnings" ]
84 } 84 }
85 } 85 }
86 86
87 # Mac-specific compiler flags setup. 87 # Mac-specific compiler flags setup.
88 # ---------------------------------- 88 # ----------------------------------
89 if (is_mac || is_ios) { 89 if (is_mac || is_ios) {
90 # These flags are shared between the C compiler and linker. 90 # These flags are shared between the C compiler and linker.
91 common_mac_flags = [] 91 common_mac_flags = []
(...skipping 715 matching lines...) Expand 10 before | Expand all | Expand 10 after
807 } else { 807 } else {
808 cflags = [ "-g1" ] 808 cflags = [ "-g1" ]
809 } 809 }
810 } 810 }
811 811
812 config("no_symbols") { 812 config("no_symbols") {
813 if (!is_win) { 813 if (!is_win) {
814 cflags = [ "-g0" ] 814 cflags = [ "-g0" ]
815 } 815 }
816 } 816 }
OLDNEW
« no previous file with comments | « build/config/BUILDCONFIG.gn ('k') | build/config/features.gni » ('j') | build/config/sysroot.gni » ('J')

Powered by Google App Engine
This is Rietveld 408576698