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_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 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
53 # The path to the hermetic install of Xcode. Only relevant when | 53 # The path to the hermetic install of Xcode. Only relevant when |
54 # use_system_xcode = false. | 54 # use_system_xcode = false. |
55 hermetic_xcode_path = | 55 hermetic_xcode_path = |
56 rebase_path("//build/${target_os}_files/Xcode.app", "", root_build_dir) | 56 rebase_path("//build/${target_os}_files/Xcode.app", "", root_build_dir) |
57 | 57 |
58 declare_args() { | 58 declare_args() { |
59 if (is_clang) { | 59 if (is_clang) { |
60 # Clang compiler version. Clang files are placed at version-dependent paths. | 60 # Clang compiler version. Clang files are placed at version-dependent paths. |
61 clang_version = "5.0.0" | 61 clang_version = "5.0.0" |
62 } | 62 } |
63 | |
64 # Set to true to use lld, the LLVM linker. This flag may be used on Windows | |
65 # or Linux. | |
66 use_lld = (is_win && host_os != "win") || | |
67 (allow_posix_link_time_opt && target_os == "linux" && | |
68 !is_chromeos && target_cpu == "x64") | |
69 } | 63 } |
70 | 64 |
71 # Check target_os here instead of is_ios as this file is loaded for secondary | 65 # Check target_os here instead of is_ios as this file is loaded for secondary |
72 # toolchain (host toolchain in particular) but the argument is the same for | 66 # toolchain (host toolchain in particular) but the argument is the same for |
73 # all toolchains. | 67 # all toolchains. |
74 assert(!use_xcode_clang || target_os == "ios", | 68 assert(!use_xcode_clang || target_os == "ios", |
75 "Using Xcode's clang is only supported in iOS builds") | 69 "Using Xcode's clang is only supported in iOS builds") |
76 | 70 |
77 # Subdirectory within root_out_dir for shared library files. | 71 # Subdirectory within root_out_dir for shared library files. |
78 # TODO(agrieve): GYP sets this to "lib" for Linux & Android, but this won't work | 72 # 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 Loading... |
120 _tool_wrapper_path = | 114 _tool_wrapper_path = |
121 rebase_path("//build/toolchain/win/tool_wrapper.py", root_build_dir) | 115 rebase_path("//build/toolchain/win/tool_wrapper.py", root_build_dir) |
122 | 116 |
123 stamp_command = "$python_path $_tool_wrapper_path stamp {{output}}" | 117 stamp_command = "$python_path $_tool_wrapper_path stamp {{output}}" |
124 copy_command = | 118 copy_command = |
125 "$python_path $_tool_wrapper_path recursive-mirror {{source}} {{output}}" | 119 "$python_path $_tool_wrapper_path recursive-mirror {{source}} {{output}}" |
126 } else { | 120 } else { |
127 stamp_command = "touch {{output}}" | 121 stamp_command = "touch {{output}}" |
128 copy_command = "ln -f {{source}} {{output}} 2>/dev/null || (rm -rf {{output}}
&& cp -af {{source}} {{output}})" | 122 copy_command = "ln -f {{source}} {{output}} 2>/dev/null || (rm -rf {{output}}
&& cp -af {{source}} {{output}})" |
129 } | 123 } |
OLD | NEW |