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

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

Issue 694353003: Get `gn gen` to succeed on Windows (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: remove GYP_DEFINES code Created 6 years, 1 month 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
« no previous file with comments | « DEPS ('k') | build/toolchain/win/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 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
73 "/Gy", # Enable function-level linking. 73 "/Gy", # Enable function-level linking.
74 "/GS", # Enable buffer security checking. 74 "/GS", # Enable buffer security checking.
75 "/FS", # Preserve previous PDB behavior. 75 "/FS", # Preserve previous PDB behavior.
76 ] 76 ]
77 if (is_component_build) { 77 if (is_component_build) {
78 cflags += [ 78 cflags += [
79 "/EHsc", # Assume C functions can't throw exceptions and don't catch 79 "/EHsc", # Assume C functions can't throw exceptions and don't catch
80 # structured exceptions (only C++ ones). 80 # structured exceptions (only C++ ones).
81 ] 81 ]
82 } 82 }
83 if (using_sanitizer) {
84 # Avoid error.
85 }
83 } else { 86 } else {
84 # Common GCC compiler flags setup. 87 # Common GCC compiler flags setup.
85 # -------------------------------- 88 # --------------------------------
86 cflags += [ 89 cflags += [
87 "-fno-strict-aliasing", # See http://crbug.com/32204 90 "-fno-strict-aliasing", # See http://crbug.com/32204
88 ] 91 ]
89 cflags_cc += [ 92 cflags_cc += [
90 "-fno-threadsafe-statics", 93 "-fno-threadsafe-statics",
91 # Not exporting C++ inline functions can generally be applied anywhere 94 # Not exporting C++ inline functions can generally be applied anywhere
92 # so we do so here. Normal function visibility is controlled by 95 # so we do so here. Normal function visibility is controlled by
(...skipping 859 matching lines...) Expand 10 before | Expand all | Expand 10 after
952 cflags += [ "-gsplit-dwarf" ] 955 cflags += [ "-gsplit-dwarf" ]
953 } 956 }
954 } 957 }
955 } 958 }
956 959
957 config("no_symbols") { 960 config("no_symbols") {
958 if (!is_win) { 961 if (!is_win) {
959 cflags = [ "-g0" ] 962 cflags = [ "-g0" ]
960 } 963 }
961 } 964 }
OLDNEW
« no previous file with comments | « DEPS ('k') | build/toolchain/win/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698