| 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 101 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 112 if (is_win) { | 112 if (is_win) { |
| 113 # Windows compiler flags setup. | 113 # Windows compiler flags setup. |
| 114 # ----------------------------- | 114 # ----------------------------- |
| 115 cflags += [ | 115 cflags += [ |
| 116 "/Gy", # Enable function-level linking. | 116 "/Gy", # Enable function-level linking. |
| 117 "/GS", # Enable buffer security checking. | 117 "/GS", # Enable buffer security checking. |
| 118 "/FS", # Preserve previous PDB behavior. | 118 "/FS", # Preserve previous PDB behavior. |
| 119 "/bigobj", # Some of our files are bigger than the regular limits. | 119 "/bigobj", # Some of our files are bigger than the regular limits. |
| 120 ] | 120 ] |
| 121 | 121 |
| 122 if (visual_studio_version == "2015") { |
| 123 # Work around crbug.com/526851, bug in VS 2015 RTM compiler |
| 124 cflags += [ "/Zc:sizedDealloc-" ] |
| 125 } |
| 126 |
| 122 # Force C/C++ mode for the given GN detected file type. This is necessary | 127 # Force C/C++ mode for the given GN detected file type. This is necessary |
| 123 # for precompiled headers where the same source file is compiled in both | 128 # for precompiled headers where the same source file is compiled in both |
| 124 # modes. | 129 # modes. |
| 125 cflags_c += [ "/TC" ] | 130 cflags_c += [ "/TC" ] |
| 126 cflags_cc += [ "/TP" ] | 131 cflags_cc += [ "/TP" ] |
| 127 | 132 |
| 128 # Building with Clang on Windows is a work in progress and very | 133 # Building with Clang on Windows is a work in progress and very |
| 129 # experimental. See crbug.com/82385. | 134 # experimental. See crbug.com/82385. |
| 130 # Keep this in sync with the similar block in build/common.gypi | 135 # Keep this in sync with the similar block in build/common.gypi |
| 131 if (is_clang) { | 136 if (is_clang) { |
| (...skipping 1205 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1337 cflags += [ "-gsplit-dwarf" ] | 1342 cflags += [ "-gsplit-dwarf" ] |
| 1338 } | 1343 } |
| 1339 } | 1344 } |
| 1340 } | 1345 } |
| 1341 | 1346 |
| 1342 config("no_symbols") { | 1347 config("no_symbols") { |
| 1343 if (!is_win) { | 1348 if (!is_win) { |
| 1344 cflags = [ "-g0" ] | 1349 cflags = [ "-g0" ] |
| 1345 } | 1350 } |
| 1346 } | 1351 } |
| OLD | NEW |