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

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

Issue 323643004: Pull GN binary at r275833 (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 6 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 | « no previous file | net/BUILD.gn » ('j') | 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 69 matching lines...) Expand 10 before | Expand all | Expand 10 after
80 } 80 }
81 81
82 # Mac-specific compiler flags setup. 82 # Mac-specific compiler flags setup.
83 # ---------------------------------- 83 # ----------------------------------
84 if (is_mac || is_ios) { 84 if (is_mac || is_ios) {
85 # These flags are shared between the C compiler and linker. 85 # These flags are shared between the C compiler and linker.
86 common_mac_flags = [] 86 common_mac_flags = []
87 87
88 # CPU architecture. 88 # CPU architecture.
89 if (cpu_arch == "x64") { 89 if (cpu_arch == "x64") {
90 common_mac_flags += [ "-arch x86_64" ] 90 common_mac_flags += [ "-arch", "x86_64" ]
91 } else if (cpu_arch == "x86") { 91 } else if (cpu_arch == "x86") {
92 common_mac_flags += [ "-arch i386" ] 92 common_mac_flags += [ "-arch", "i386" ]
93 } 93 }
94 94
95 cflags += common_mac_flags 95 cflags += common_mac_flags
96 96
97 # Without this, the constructors and destructors of a C++ object inside 97 # Without this, the constructors and destructors of a C++ object inside
98 # an Objective C struct won't be called, which is very bad. 98 # an Objective C struct won't be called, which is very bad.
99 cflags_objcc = [ "-fobjc-call-cxx-cdtors", ] 99 cflags_objcc = [ "-fobjc-call-cxx-cdtors", ]
100 100
101 cflags_c += [ "-std=c99" ] 101 cflags_c += [ "-std=c99" ]
102 cflags_cc += [ "-std=gnu++11" ] 102 cflags_cc += [ "-std=gnu++11" ]
(...skipping 689 matching lines...) Expand 10 before | Expand all | Expand 10 after
792 } else { 792 } else {
793 cflags = [ "-g1" ] 793 cflags = [ "-g1" ]
794 } 794 }
795 } 795 }
796 796
797 config("no_symbols") { 797 config("no_symbols") {
798 if (!is_win) { 798 if (!is_win) {
799 cflags = [ "-g0" ] 799 cflags = [ "-g0" ]
800 } 800 }
801 } 801 }
OLDNEW
« no previous file with comments | « no previous file | net/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698