OLD | NEW |
---|---|
1 # Copyright 2015 The Chromium Authors. All rights reserved. | 1 # Copyright 2015 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 # Toolchain-related configuration that may be needed outside the context of the | 5 # Toolchain-related configuration that may be needed outside the context of the |
6 # toolchain() rules themselves. | 6 # toolchain() rules themselves. |
7 | 7 |
8 import("//build/config/chrome_build.gni") | |
9 | |
10 declare_args() { | 8 declare_args() { |
11 # Enable Link Time Optimization in optimized builds (output programs run | 9 # Enable Link Time Optimization in optimized builds (output programs run |
12 # faster, but linking is up to 5-20x slower). | 10 # faster, but linking is up to 5-20x slower). |
13 # | 11 # |
14 allow_posix_link_time_opt = is_linux && !is_chromeos && target_cpu == "x64" && | 12 # TODO(pcc): Remove this flag if/when LTO is enabled in official builds. |
Nico
2016/05/26 15:21:50
I'm not sure why you rechecked cq after I unchecke
| |
15 is_chrome_branded && is_official_build | 13 allow_posix_link_time_opt = false |
16 | 14 |
17 # Set to true to use lld, the LLVM linker. This flag may be used on Windows | 15 # Set to true to use lld, the LLVM linker. This flag may be used on Windows |
18 # with the shipped LLVM toolchain, or on Linux with a self-built top-of-tree | 16 # with the shipped LLVM toolchain, or on Linux with a self-built top-of-tree |
19 # LLVM toolchain (see llvm_force_head_revision in | 17 # LLVM toolchain (see llvm_force_head_revision in |
20 # build/config/compiler/BUILD.gn). | 18 # build/config/compiler/BUILD.gn). |
21 use_lld = false | 19 use_lld = false |
22 | 20 |
23 if (is_clang) { | 21 if (is_clang) { |
24 # Clang compiler version. Clang files are placed at version-dependent paths. | 22 # Clang compiler version. Clang files are placed at version-dependent paths. |
25 clang_version = "3.9.0" | 23 clang_version = "3.9.0" |
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
69 stamp_description = "STAMP {{output}}" | 67 stamp_description = "STAMP {{output}}" |
70 copy_description = "COPY {{source}} {{output}}" | 68 copy_description = "COPY {{source}} {{output}}" |
71 if (host_os == "win") { | 69 if (host_os == "win") { |
72 stamp_command = "$python_path gyp-win-tool stamp {{output}}" | 70 stamp_command = "$python_path gyp-win-tool stamp {{output}}" |
73 copy_command = | 71 copy_command = |
74 "$python_path gyp-win-tool recursive-mirror {{source}} {{output}}" | 72 "$python_path gyp-win-tool recursive-mirror {{source}} {{output}}" |
75 } else { | 73 } else { |
76 stamp_command = "touch {{output}}" | 74 stamp_command = "touch {{output}}" |
77 copy_command = "ln -f {{source}} {{output}} 2>/dev/null || (rm -rf {{output}} && cp -af {{source}} {{output}})" | 75 copy_command = "ln -f {{source}} {{output}} 2>/dev/null || (rm -rf {{output}} && cp -af {{source}} {{output}})" |
78 } | 76 } |
OLD | NEW |