Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(270)

Side by Side Diff: build/toolchain/toolchain.gni

Issue 2888623003: Use a GN arg for controlling linker map file generation. (Closed)
Patch Set: agrieve comments Created 3 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « build/toolchain/gcc_toolchain.gni ('k') | tools/binary_size/diagnose_bloat.py » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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_overrides/build.gni") 8 import("//build_overrides/build.gni")
9 import("//build/config/chrome_build.gni") 9 import("//build/config/chrome_build.gni")
10 10
(...skipping 17 matching lines...) Expand all
28 # the CLANG_REVISION to use, instead of the version hard-coded into 28 # the CLANG_REVISION to use, instead of the version hard-coded into
29 # //tools/clang/scripts/update.py. This should only be used in 29 # //tools/clang/scripts/update.py. This should only be used in
30 # conjunction with setting LLVM_FORCE_HEAD_REVISION in the 30 # conjunction with setting LLVM_FORCE_HEAD_REVISION in the
31 # environment when `gclient runhooks` is run as well. 31 # environment when `gclient runhooks` is run as well.
32 llvm_force_head_revision = false 32 llvm_force_head_revision = false
33 33
34 # Compile with Xcode version of clang instead of hermetic version shipped 34 # Compile with Xcode version of clang instead of hermetic version shipped
35 # with the build. Used on iOS to ship official builds (as they are built 35 # with the build. Used on iOS to ship official builds (as they are built
36 # with the version of clang shipped with Xcode). 36 # with the version of clang shipped with Xcode).
37 use_xcode_clang = is_ios && is_official_build 37 use_xcode_clang = is_ios && is_official_build
38
39 # Used for binary size analysis.
40 # Currently disabled on LLD because of a bug (fixed upstream).
41 # See https://crbug.com/716209.
42 generate_linker_map = is_android && is_official_build
43 }
44
45 if (generate_linker_map) {
46 assert(
47 is_official_build,
48 "Linker map files should only be generated when is_official_build = true")
49 assert(target_os == "android" || target_os == "linux",
50 "Linker map files should only be generated for Android and Linux")
38 } 51 }
39 52
40 # The path to the hermetic install of Xcode. Only relevant when 53 # The path to the hermetic install of Xcode. Only relevant when
41 # use_system_xcode = false. 54 # use_system_xcode = false.
42 hermetic_xcode_path = 55 hermetic_xcode_path =
43 rebase_path("//build/${target_os}_files/Xcode.app", "", root_build_dir) 56 rebase_path("//build/${target_os}_files/Xcode.app", "", root_build_dir)
44 57
45 declare_args() { 58 declare_args() {
46 if (is_clang) { 59 if (is_clang) {
47 # Clang compiler version. Clang files are placed at version-dependent paths. 60 # Clang compiler version. Clang files are placed at version-dependent paths.
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
107 _tool_wrapper_path = 120 _tool_wrapper_path =
108 rebase_path("//build/toolchain/win/tool_wrapper.py", root_build_dir) 121 rebase_path("//build/toolchain/win/tool_wrapper.py", root_build_dir)
109 122
110 stamp_command = "$python_path $_tool_wrapper_path stamp {{output}}" 123 stamp_command = "$python_path $_tool_wrapper_path stamp {{output}}"
111 copy_command = 124 copy_command =
112 "$python_path $_tool_wrapper_path recursive-mirror {{source}} {{output}}" 125 "$python_path $_tool_wrapper_path recursive-mirror {{source}} {{output}}"
113 } else { 126 } else {
114 stamp_command = "touch {{output}}" 127 stamp_command = "touch {{output}}"
115 copy_command = "ln -f {{source}} {{output}} 2>/dev/null || (rm -rf {{output}} && cp -af {{source}} {{output}})" 128 copy_command = "ln -f {{source}} {{output}} 2>/dev/null || (rm -rf {{output}} && cp -af {{source}} {{output}})"
116 } 129 }
OLDNEW
« no previous file with comments | « build/toolchain/gcc_toolchain.gni ('k') | tools/binary_size/diagnose_bloat.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698