| 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 |
| 111 # Building with Clang on Windows is a work in progress and very | 117 # Building with Clang on Windows is a work in progress and very |
| 112 # experimental. See crbug.com/82385. | 118 # experimental. See crbug.com/82385. |
| 113 # Keep this in sync with the similar block in build/common.gypi | 119 # Keep this in sync with the similar block in build/common.gypi |
| 114 if (is_clang) { | 120 if (is_clang) { |
| 115 cflags += [ | 121 cflags += [ |
| 116 # Many files use intrinsics without including this header. | 122 # Many files use intrinsics without including this header. |
| 117 # TODO(hans): Fix those files, or move this to sub-GYPs. | 123 # TODO(hans): Fix those files, or move this to sub-GYPs. |
| 118 "/FIIntrin.h", | 124 "/FIIntrin.h", |
| 119 ] | 125 ] |
| 120 | 126 |
| (...skipping 1137 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1258 cflags += [ "-gsplit-dwarf" ] | 1264 cflags += [ "-gsplit-dwarf" ] |
| 1259 } | 1265 } |
| 1260 } | 1266 } |
| 1261 } | 1267 } |
| 1262 | 1268 |
| 1263 config("no_symbols") { | 1269 config("no_symbols") { |
| 1264 if (!is_win) { | 1270 if (!is_win) { |
| 1265 cflags = [ "-g0" ] | 1271 cflags = [ "-g0" ] |
| 1266 } | 1272 } |
| 1267 } | 1273 } |
| OLD | NEW |