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

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

Issue 295023002: Fix mac GN build. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 7 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 | Annotate | Revision Log
« no previous file with comments | « base/BUILD.gn ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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("//build/config/android/config.gni") 5 import("//build/config/android/config.gni")
6 if (cpu_arch == "arm") { 6 if (cpu_arch == "arm") {
7 import("//build/config/arm.gni") 7 import("//build/config/arm.gni")
8 } 8 }
9 if (is_posix) { 9 if (is_posix) {
10 import("//build/config/gcc/gcc_version.gni") 10 import("//build/config/gcc/gcc_version.gni")
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
63 ] 63 ]
64 64
65 # Stack protection. 65 # Stack protection.
66 if (is_mac) { 66 if (is_mac) {
67 cflags += [ "-fstack-protector-all" ] 67 cflags += [ "-fstack-protector-all" ]
68 } else if (is_linux) { 68 } else if (is_linux) {
69 cflags += [ "-fstack-protector", "--param=ssp-buffer-size=4" ] 69 cflags += [ "-fstack-protector", "--param=ssp-buffer-size=4" ]
70 } 70 }
71 71
72 # Linker warnings. 72 # Linker warnings.
73 if (!(is_chromeos && cpu_arch == "arm")) { 73 if (!(is_chromeos && cpu_arch == "arm") && !is_mac) {
74 # TODO(jochen): Enable this on chromeos on arm. http://crbug.com/356580 74 # TODO(jochen): Enable this on chromeos on arm. http://crbug.com/356580
75 ldflags += [ "-Wl,--fatal-warnings" ] 75 ldflags += [ "-Wl,--fatal-warnings" ]
76 } 76 }
77 } 77 }
78 78
79 # Mac-specific compiler flags setup. 79 # Mac-specific compiler flags setup.
80 # ---------------------------------- 80 # ----------------------------------
81 if (is_mac || is_ios) { 81 if (is_mac || is_ios) {
82 # These flags are shared between the C compiler and linker. 82 # These flags are shared between the C compiler and linker.
83 common_mac_flags = [] 83 common_mac_flags = []
(...skipping 693 matching lines...) Expand 10 before | Expand all | Expand 10 after
777 } else { 777 } else {
778 cflags = [ "-g1" ] 778 cflags = [ "-g1" ]
779 } 779 }
780 } 780 }
781 781
782 config("no_symbols") { 782 config("no_symbols") {
783 if (!is_win) { 783 if (!is_win) {
784 cflags = [ "-g0" ] 784 cflags = [ "-g0" ]
785 } 785 }
786 } 786 }
OLDNEW
« no previous file with comments | « base/BUILD.gn ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698