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

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

Issue 2494103002: Move use_system_xcode to //build_overrides/build.gni (Closed)
Patch Set: Moved references into build.gni Created 4 years, 1 month 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
« .gn ('K') | « .gn ('k') | build_overrides/build.gni » ('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/config/chrome_build.gni") 9 import("//build/config/chrome_build.gni")
9 10
10 declare_args() { 11 declare_args() {
11 # Enable Link Time Optimization in optimized builds (output programs run 12 # Enable Link Time Optimization in optimized builds (output programs run
12 # faster, but linking is up to 5-20x slower). 13 # faster, but linking is up to 5-20x slower).
13 # Note: use target_os == "linux" rather than is_linux so that it does not 14 # Note: use target_os == "linux" rather than is_linux so that it does not
14 # apply to host_toolchain when target_os="android". 15 # apply to host_toolchain when target_os="android".
15 allow_posix_link_time_opt = 16 allow_posix_link_time_opt =
16 target_os == "linux" && !is_chromeos && target_cpu == "x64" && 17 target_os == "linux" && !is_chromeos && target_cpu == "x64" &&
17 is_chrome_branded && is_official_build 18 is_chrome_branded && is_official_build
(...skipping 15 matching lines...) Expand all
33 # the CLANG_REVISION to use, instead of the version hard-coded into 34 # the CLANG_REVISION to use, instead of the version hard-coded into
34 # //tools/clang/scripts/update.py. This should only be used in 35 # //tools/clang/scripts/update.py. This should only be used in
35 # conjunction with setting LLVM_FORCE_HEAD_REVISION in the 36 # conjunction with setting LLVM_FORCE_HEAD_REVISION in the
36 # environment when `gclient runhooks` is run as well. 37 # environment when `gclient runhooks` is run as well.
37 llvm_force_head_revision = false 38 llvm_force_head_revision = false
38 39
39 # Compile with Xcode version of clang instead of hermetic version shipped 40 # Compile with Xcode version of clang instead of hermetic version shipped
40 # with the build. Used on iOS to ship official builds (as they are built 41 # with the build. Used on iOS to ship official builds (as they are built
41 # with the version of clang shipped with Xcode). 42 # with the version of clang shipped with Xcode).
42 use_xcode_clang = is_ios && is_official_build 43 use_xcode_clang = is_ios && is_official_build
43
44 # Use the system install of Xcode for tools like ibtool, libtool, etc.
45 # This does not affect the compiler. When this variable is false, targets will
46 # instead use a hermetic install of Xcode. [The hermetic install can be
47 # obtained with gclient sync after setting the environment variable
48 # FORCE_MAC_TOOLCHAIN].
49 use_system_xcode = ""
50 }
51
52 if (use_system_xcode == "") {
53 if (target_os == "mac") {
54 _result =
55 exec_script("//build/mac/should_use_hermetic_xcode.py", [], "value")
56 use_system_xcode = _result == 0
57 }
58 if (target_os == "ios") {
59 use_system_xcode = true
60 }
61 } 44 }
62 45
63 # The path to the hermetic install of Xcode. Only relevant when 46 # The path to the hermetic install of Xcode. Only relevant when
64 # use_system_xcode = false. 47 # use_system_xcode = false.
65 hermetic_xcode_path = 48 hermetic_xcode_path =
66 rebase_path("//build/mac_files/Xcode.app", "", root_build_dir) 49 rebase_path("//build/mac_files/Xcode.app", "", root_build_dir)
67 50
68 declare_args() { 51 declare_args() {
69 if (is_clang) { 52 if (is_clang) {
70 # Clang compiler version. Clang files are placed at version-dependent paths. 53 # Clang compiler version. Clang files are placed at version-dependent paths.
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
124 _tool_wrapper_path = 107 _tool_wrapper_path =
125 rebase_path("//build/toolchain/win/tool_wrapper.py", root_build_dir) 108 rebase_path("//build/toolchain/win/tool_wrapper.py", root_build_dir)
126 109
127 stamp_command = "$python_path $_tool_wrapper_path stamp {{output}}" 110 stamp_command = "$python_path $_tool_wrapper_path stamp {{output}}"
128 copy_command = 111 copy_command =
129 "$python_path $_tool_wrapper_path recursive-mirror {{source}} {{output}}" 112 "$python_path $_tool_wrapper_path recursive-mirror {{source}} {{output}}"
130 } else { 113 } else {
131 stamp_command = "touch {{output}}" 114 stamp_command = "touch {{output}}"
132 copy_command = "ln -f {{source}} {{output}} 2>/dev/null || (rm -rf {{output}} && cp -af {{source}} {{output}})" 115 copy_command = "ln -f {{source}} {{output}} 2>/dev/null || (rm -rf {{output}} && cp -af {{source}} {{output}})"
133 } 116 }
OLDNEW
« .gn ('K') | « .gn ('k') | build_overrides/build.gni » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698