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

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

Issue 2891843002: build: Remove build system support for gold plugin, except under ChromeOS. (Closed)
Patch Set: 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
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 29 matching lines...) Expand all
40 # The path to the hermetic install of Xcode. Only relevant when 40 # The path to the hermetic install of Xcode. Only relevant when
41 # use_system_xcode = false. 41 # use_system_xcode = false.
42 hermetic_xcode_path = 42 hermetic_xcode_path =
43 rebase_path("//build/${target_os}_files/Xcode.app", "", root_build_dir) 43 rebase_path("//build/${target_os}_files/Xcode.app", "", root_build_dir)
44 44
45 declare_args() { 45 declare_args() {
46 if (is_clang) { 46 if (is_clang) {
47 # Clang compiler version. Clang files are placed at version-dependent paths. 47 # Clang compiler version. Clang files are placed at version-dependent paths.
48 clang_version = "5.0.0" 48 clang_version = "5.0.0"
49 } 49 }
50
51 # Set to true to use lld, the LLVM linker. This flag may be used on Windows
52 # or Linux.
53 use_lld = (is_win && host_os != "win") ||
54 (allow_posix_link_time_opt && target_os == "linux" &&
55 !is_chromeos && target_cpu == "x64")
56 } 50 }
57 51
58 # Check target_os here instead of is_ios as this file is loaded for secondary 52 # Check target_os here instead of is_ios as this file is loaded for secondary
59 # toolchain (host toolchain in particular) but the argument is the same for 53 # toolchain (host toolchain in particular) but the argument is the same for
60 # all toolchains. 54 # all toolchains.
61 assert(!use_xcode_clang || target_os == "ios", 55 assert(!use_xcode_clang || target_os == "ios",
62 "Using Xcode's clang is only supported in iOS builds") 56 "Using Xcode's clang is only supported in iOS builds")
63 57
64 # Subdirectory within root_out_dir for shared library files. 58 # Subdirectory within root_out_dir for shared library files.
65 # TODO(agrieve): GYP sets this to "lib" for Linux & Android, but this won't work 59 # 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
107 _tool_wrapper_path = 101 _tool_wrapper_path =
108 rebase_path("//build/toolchain/win/tool_wrapper.py", root_build_dir) 102 rebase_path("//build/toolchain/win/tool_wrapper.py", root_build_dir)
109 103
110 stamp_command = "$python_path $_tool_wrapper_path stamp {{output}}" 104 stamp_command = "$python_path $_tool_wrapper_path stamp {{output}}"
111 copy_command = 105 copy_command =
112 "$python_path $_tool_wrapper_path recursive-mirror {{source}} {{output}}" 106 "$python_path $_tool_wrapper_path recursive-mirror {{source}} {{output}}"
113 } else { 107 } else {
114 stamp_command = "touch {{output}}" 108 stamp_command = "touch {{output}}"
115 copy_command = "ln -f {{source}} {{output}} 2>/dev/null || (rm -rf {{output}} && cp -af {{source}} {{output}})" 109 copy_command = "ln -f {{source}} {{output}} 2>/dev/null || (rm -rf {{output}} && cp -af {{source}} {{output}})"
116 } 110 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698