| 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 1142 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1269 cflags += [ "-gsplit-dwarf" ] | 1263 cflags += [ "-gsplit-dwarf" ] |
| 1270 } | 1264 } |
| 1271 } | 1265 } |
| 1272 } | 1266 } |
| 1273 | 1267 |
| 1274 config("no_symbols") { | 1268 config("no_symbols") { |
| 1275 if (!is_win) { | 1269 if (!is_win) { |
| 1276 cflags = [ "-g0" ] | 1270 cflags = [ "-g0" ] |
| 1277 } | 1271 } |
| 1278 } | 1272 } |
| OLD | NEW |