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

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

Issue 204663004: Use depot_tools toolchain, remove now unneeded code, fix not including path to win sdk tools (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Use depot_tools toolchain, remove now unneeded code, fix not including path to win sdk tools Created 6 years, 9 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
« no previous file with comments | « no previous file | build/config/win/BUILD.gn » ('j') | build/config/win/visual_studio_version.gni » ('J')
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 9
10 # compiler --------------------------------------------------------------------- 10 # compiler ---------------------------------------------------------------------
(...skipping 18 matching lines...) Expand all
29 # GCC flags, and then we handle the other non-Windows platforms specifically 29 # GCC flags, and then we handle the other non-Windows platforms specifically
30 # below. 30 # below.
31 if (is_win) { 31 if (is_win) {
32 # Windows compiler flags setup. 32 # Windows compiler flags setup.
33 # ----------------------------- 33 # -----------------------------
34 cflags += [ 34 cflags += [
35 "/Gy", # Enable function-level linking. 35 "/Gy", # Enable function-level linking.
36 "/GS", # Enable buffer security checking. 36 "/GS", # Enable buffer security checking.
37 "/EHsc", # Assume C functions can't throw exceptions and don't catch 37 "/EHsc", # Assume C functions can't throw exceptions and don't catch
38 # structured exceptions (only C++ ones). 38 # structured exceptions (only C++ ones).
39 "/FS", # Preserve previous PDB behavior.
39 ] 40 ]
40 } else { 41 } else {
41 # Common GCC compiler flags setup. 42 # Common GCC compiler flags setup.
42 # -------------------------------- 43 # --------------------------------
43 cflags += [ 44 cflags += [
44 "-fno-strict-aliasing", # See http://crbug.com/32204 45 "-fno-strict-aliasing", # See http://crbug.com/32204
45 "-fvisibility=hidden", 46 "-fvisibility=hidden",
46 ] 47 ]
47 cflags_cc += [ 48 cflags_cc += [
48 "-fno-exceptions", 49 "-fno-exceptions",
(...skipping 623 matching lines...) Expand 10 before | Expand all | Expand 10 after
672 cflags = [ "-g1" ] 673 cflags = [ "-g1" ]
673 } 674 }
674 } 675 }
675 676
676 config("no_symbols") { 677 config("no_symbols") {
677 if (!is_win) { 678 if (!is_win) {
678 cflags = [ "-g0" ] 679 cflags = [ "-g0" ]
679 } 680 }
680 } 681 }
681 682
OLDNEW
« no previous file with comments | « no previous file | build/config/win/BUILD.gn » ('j') | build/config/win/visual_studio_version.gni » ('J')

Powered by Google App Engine
This is Rietveld 408576698