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

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

Issue 117673003: GN fixes (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years 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 | build/toolchain/linux/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/linux/sysroot.gni") 5 import("//build/config/linux/sysroot.gni")
6 6
7 # Base compiler configuration. 7 # Base compiler configuration.
8 config("compiler") { 8 config("compiler") {
9 include_dirs = [ "//", root_gen_dir ] 9 include_dirs = [ "//", root_gen_dir ]
10 if (is_win) { 10 if (is_win) {
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
47 47
48 # These flags are shared between the C compiler and linker. 48 # These flags are shared between the C compiler and linker.
49 common_mac_flags = [ 49 common_mac_flags = [
50 "-isysroot", sysroot, 50 "-isysroot", sysroot,
51 "-mmacosx-version-min=10.6", 51 "-mmacosx-version-min=10.6",
52 ] 52 ]
53 53
54 # CPU architecture. 54 # CPU architecture.
55 if (cpu_arch == "x64") { 55 if (cpu_arch == "x64") {
56 common_mac_flags += "-arch x86_64" 56 common_mac_flags += "-arch x86_64"
57 } else if (cpu_arch == "x32") { 57 } else if (cpu_arch == "x86") {
58 common_mac_flags += "-arch i386" 58 common_mac_flags += "-arch i386"
59 } 59 }
60 60
61 cflags += common_mac_flags + [ 61 cflags += common_mac_flags + [
62 # Without this, the constructors and destructors of a C++ object inside 62 # Without this, the constructors and destructors of a C++ object inside
63 # an Objective C struct won't be called, which is very bad. 63 # an Objective C struct won't be called, which is very bad.
64 "-fobjc-call-cxx-cdtors", 64 "-fobjc-call-cxx-cdtors",
65 ] 65 ]
66 66
67 cflags_c += [ "-std=c99" ] 67 cflags_c += [ "-std=c99" ]
(...skipping 347 matching lines...) Expand 10 before | Expand all | Expand 10 after
415 } else { 415 } else {
416 cflags = [ "-g1" ] 416 cflags = [ "-g1" ]
417 } 417 }
418 } 418 }
419 419
420 config("no_symbols") { 420 config("no_symbols") {
421 if (!is_win) { 421 if (!is_win) {
422 cflags = [ "-g0" ] 422 cflags = [ "-g0" ]
423 } 423 }
424 } 424 }
OLDNEW
« no previous file with comments | « no previous file | build/toolchain/linux/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698