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

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

Issue 2891843002: build: Remove build system support for gold plugin, except under ChromeOS. (Closed)
Patch Set: Attempt to fix the Windows build Created 3 years, 6 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/config/compiler/compiler.gni ('k') | tools/win/DebugVisualizers/BUILD.gn » ('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 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
55 # The path to the hermetic install of Xcode. Only relevant when 55 # The path to the hermetic install of Xcode. Only relevant when
56 # use_system_xcode = false. 56 # use_system_xcode = false.
57 hermetic_xcode_path = 57 hermetic_xcode_path =
58 rebase_path("//build/${target_os}_files/Xcode.app", "", root_build_dir) 58 rebase_path("//build/${target_os}_files/Xcode.app", "", root_build_dir)
59 59
60 declare_args() { 60 declare_args() {
61 if (is_clang) { 61 if (is_clang) {
62 # Clang compiler version. Clang files are placed at version-dependent paths. 62 # Clang compiler version. Clang files are placed at version-dependent paths.
63 clang_version = "5.0.0" 63 clang_version = "5.0.0"
64 } 64 }
65
66 # Set to true to use lld, the LLVM linker. This flag may be used on Windows
67 # or Linux.
68 use_lld = (is_win && host_os != "win") || is_fuchsia ||
69 (allow_posix_link_time_opt && target_os == "linux" &&
70 !is_chromeos && target_cpu == "x64")
71 } 65 }
72 66
73 # Check target_os here instead of is_ios as this file is loaded for secondary 67 # Check target_os here instead of is_ios as this file is loaded for secondary
74 # toolchain (host toolchain in particular) but the argument is the same for 68 # toolchain (host toolchain in particular) but the argument is the same for
75 # all toolchains. 69 # all toolchains.
76 assert(!use_xcode_clang || target_os == "ios", 70 assert(!use_xcode_clang || target_os == "ios",
77 "Using Xcode's clang is only supported in iOS builds") 71 "Using Xcode's clang is only supported in iOS builds")
78 72
79 # Subdirectory within root_out_dir for shared library files. 73 # Subdirectory within root_out_dir for shared library files.
80 # TODO(agrieve): GYP sets this to "lib" for Linux & Android, but this won't work 74 # TODO(agrieve): GYP sets this to "lib" for Linux & Android, but this won't work
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
122 _tool_wrapper_path = 116 _tool_wrapper_path =
123 rebase_path("//build/toolchain/win/tool_wrapper.py", root_build_dir) 117 rebase_path("//build/toolchain/win/tool_wrapper.py", root_build_dir)
124 118
125 stamp_command = "$python_path $_tool_wrapper_path stamp {{output}}" 119 stamp_command = "$python_path $_tool_wrapper_path stamp {{output}}"
126 copy_command = 120 copy_command =
127 "$python_path $_tool_wrapper_path recursive-mirror {{source}} {{output}}" 121 "$python_path $_tool_wrapper_path recursive-mirror {{source}} {{output}}"
128 } else { 122 } else {
129 stamp_command = "touch {{output}}" 123 stamp_command = "touch {{output}}"
130 copy_command = "ln -f {{source}} {{output}} 2>/dev/null || (rm -rf {{output}} && cp -af {{source}} {{output}})" 124 copy_command = "ln -f {{source}} {{output}} 2>/dev/null || (rm -rf {{output}} && cp -af {{source}} {{output}})"
131 } 125 }
OLDNEW
« no previous file with comments | « build/config/compiler/compiler.gni ('k') | tools/win/DebugVisualizers/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698