| 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 import("//build/config/compiler/compiler.gni") | 7 import("//build/config/compiler/compiler.gni") |
| 8 import("//build/config/nacl/config.gni") | 8 import("//build/config/nacl/config.gni") |
| 9 import("//build/toolchain/cc_wrapper.gni") | 9 import("//build/toolchain/cc_wrapper.gni") |
| 10 import("//build/toolchain/toolchain.gni") | 10 import("//build/toolchain/toolchain.gni") |
| (...skipping 1355 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1366 "/GL", # Whole program optimization. | 1366 "/GL", # Whole program optimization. |
| 1367 | 1367 |
| 1368 # Disable Warning 4702 ("Unreachable code") for the WPO/PGO builds. | 1368 # Disable Warning 4702 ("Unreachable code") for the WPO/PGO builds. |
| 1369 # Probably anything that this would catch that wouldn't be caught in a | 1369 # Probably anything that this would catch that wouldn't be caught in a |
| 1370 # normal build isn't going to actually be a bug, so the incremental | 1370 # normal build isn't going to actually be a bug, so the incremental |
| 1371 # value of C4702 for PGO builds is likely very small. | 1371 # value of C4702 for PGO builds is likely very small. |
| 1372 "/wd4702", | 1372 "/wd4702", |
| 1373 ] | 1373 ] |
| 1374 } | 1374 } |
| 1375 } else { | 1375 } else { |
| 1376 cflags = [ "-O3" ] + common_optimize_on_cflags | 1376 cflags = [ "-O2" ] + common_optimize_on_cflags |
| 1377 } | 1377 } |
| 1378 } | 1378 } |
| 1379 } | 1379 } |
| 1380 | 1380 |
| 1381 # The default optimization applied to all targets. This will be equivalent to | 1381 # The default optimization applied to all targets. This will be equivalent to |
| 1382 # either "optimize" or "no_optimize", depending on the build flags. | 1382 # either "optimize" or "no_optimize", depending on the build flags. |
| 1383 config("default_optimization") { | 1383 config("default_optimization") { |
| 1384 if (is_nacl_irt) { | 1384 if (is_nacl_irt) { |
| 1385 # The NaCl IRT is a special case and always wants its own config. | 1385 # The NaCl IRT is a special case and always wants its own config. |
| 1386 # It gets optimized the same way regardless of the type of build. | 1386 # It gets optimized the same way regardless of the type of build. |
| (...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1480 | 1480 |
| 1481 if (is_ios || is_mac) { | 1481 if (is_ios || is_mac) { |
| 1482 # On Mac and iOS, this enables support for ARC (automatic ref-counting). | 1482 # On Mac and iOS, this enables support for ARC (automatic ref-counting). |
| 1483 # See http://clang.llvm.org/docs/AutomaticReferenceCounting.html. | 1483 # See http://clang.llvm.org/docs/AutomaticReferenceCounting.html. |
| 1484 config("enable_arc") { | 1484 config("enable_arc") { |
| 1485 common_flags = [ "-fobjc-arc" ] | 1485 common_flags = [ "-fobjc-arc" ] |
| 1486 cflags_objc = common_flags | 1486 cflags_objc = common_flags |
| 1487 cflags_objcc = common_flags | 1487 cflags_objcc = common_flags |
| 1488 } | 1488 } |
| 1489 } | 1489 } |
| OLD | NEW |