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 90 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
101 # below. | 101 # below. |
102 if (is_win) { | 102 if (is_win) { |
103 # Windows compiler flags setup. | 103 # Windows compiler flags setup. |
104 # ----------------------------- | 104 # ----------------------------- |
105 cflags += [ | 105 cflags += [ |
106 "/Gy", # Enable function-level linking. | 106 "/Gy", # Enable function-level linking. |
107 "/GS", # Enable buffer security checking. | 107 "/GS", # Enable buffer security checking. |
108 "/FS", # Preserve previous PDB behavior. | 108 "/FS", # Preserve previous PDB behavior. |
109 ] | 109 ] |
110 | 110 |
111 # Force C/C++ mode for the given GN detected file type. This is necessary | |
112 # for precompiled headers where the same source file is compiled in both | |
113 # modes. | |
114 cflags_c += [ "/TC" ] | |
115 cflags_cc += [ "/TP" ] | |
116 | |
117 # Building with Clang on Windows is a work in progress and very | 111 # Building with Clang on Windows is a work in progress and very |
118 # experimental. See crbug.com/82385. | 112 # experimental. See crbug.com/82385. |
119 # Keep this in sync with the similar block in build/common.gypi | 113 # Keep this in sync with the similar block in build/common.gypi |
120 if (is_clang) { | 114 if (is_clang) { |
121 cflags += [ | 115 cflags += [ |
122 # Many files use intrinsics without including this header. | 116 # Many files use intrinsics without including this header. |
123 # TODO(hans): Fix those files, or move this to sub-GYPs. | 117 # TODO(hans): Fix those files, or move this to sub-GYPs. |
124 "/FIIntrin.h", | 118 "/FIIntrin.h", |
125 ] | 119 ] |
126 | 120 |
(...skipping 1132 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1259 cflags += [ "-gsplit-dwarf" ] | 1253 cflags += [ "-gsplit-dwarf" ] |
1260 } | 1254 } |
1261 } | 1255 } |
1262 } | 1256 } |
1263 | 1257 |
1264 config("no_symbols") { | 1258 config("no_symbols") { |
1265 if (!is_win) { | 1259 if (!is_win) { |
1266 cflags = [ "-g0" ] | 1260 cflags = [ "-g0" ] |
1267 } | 1261 } |
1268 } | 1262 } |
OLD | NEW |