OLD | NEW |
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 import("//build/config/chrome_build.gni") | 6 import("//build/config/chrome_build.gni") |
7 if (current_cpu == "arm") { | 7 if (current_cpu == "arm") { |
8 import("//build/config/arm.gni") | 8 import("//build/config/arm.gni") |
9 } | 9 } |
10 if (current_cpu == "mipsel" || current_cpu == "mips64el") { | 10 if (current_cpu == "mipsel" || current_cpu == "mips64el") { |
(...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
97 # some common GCC configuration. This section sets up Windows and the common | 97 # some common GCC configuration. This section sets up Windows and the common |
98 # GCC flags, and then we handle the other non-Windows platforms specifically | 98 # GCC flags, and then we handle the other non-Windows platforms specifically |
99 # below. | 99 # below. |
100 if (is_win) { | 100 if (is_win) { |
101 # Windows compiler flags setup. | 101 # Windows compiler flags setup. |
102 # ----------------------------- | 102 # ----------------------------- |
103 cflags += [ | 103 cflags += [ |
104 "/Gy", # Enable function-level linking. | 104 "/Gy", # Enable function-level linking. |
105 "/GS", # Enable buffer security checking. | 105 "/GS", # Enable buffer security checking. |
106 "/FS", # Preserve previous PDB behavior. | 106 "/FS", # Preserve previous PDB behavior. |
107 "/bigobj", # Always use big .obj format. | |
108 ] | 107 ] |
109 | 108 |
110 # Building with Clang on Windows is a work in progress and very | 109 # Building with Clang on Windows is a work in progress and very |
111 # experimental. See crbug.com/82385. | 110 # experimental. See crbug.com/82385. |
112 # Keep this in sync with the similar block in build/common.gypi | 111 # Keep this in sync with the similar block in build/common.gypi |
113 if (is_clang) { | 112 if (is_clang) { |
114 cflags += [ | 113 cflags += [ |
115 # Many files use intrinsics without including this header. | 114 # Many files use intrinsics without including this header. |
116 # TODO(hans): Fix those files, or move this to sub-GYPs. | 115 # TODO(hans): Fix those files, or move this to sub-GYPs. |
117 "/FIIntrin.h", | 116 "/FIIntrin.h", |
(...skipping 1139 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1257 cflags += [ "-gsplit-dwarf" ] | 1256 cflags += [ "-gsplit-dwarf" ] |
1258 } | 1257 } |
1259 } | 1258 } |
1260 } | 1259 } |
1261 | 1260 |
1262 config("no_symbols") { | 1261 config("no_symbols") { |
1263 if (!is_win) { | 1262 if (!is_win) { |
1264 cflags = [ "-g0" ] | 1263 cflags = [ "-g0" ] |
1265 } | 1264 } |
1266 } | 1265 } |
OLD | NEW |