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/config/chrome_build.gni") | 8 import("//build/config/chrome_build.gni") |
9 | 9 |
10 declare_args() { | 10 declare_args() { |
(...skipping 22 matching lines...) Expand all Loading... | |
33 # the CLANG_REVISION to use, instead of the version hard-coded into | 33 # the CLANG_REVISION to use, instead of the version hard-coded into |
34 # //tools/clang/scripts/update.py. This should only be used in | 34 # //tools/clang/scripts/update.py. This should only be used in |
35 # conjunction with setting LLVM_FORCE_HEAD_REVISION in the | 35 # conjunction with setting LLVM_FORCE_HEAD_REVISION in the |
36 # environment when `gclient runhooks` is run as well. | 36 # environment when `gclient runhooks` is run as well. |
37 llvm_force_head_revision = false | 37 llvm_force_head_revision = false |
38 | 38 |
39 # Compile with Xcode version of clang instead of hermetic version shipped | 39 # 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 | 40 # with the build. Used on iOS to ship official builds (as they are built |
41 # with the version of clang shipped with Xcode). | 41 # with the version of clang shipped with Xcode). |
42 use_xcode_clang = is_ios && is_official_build | 42 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 = true | |
50 | |
51 # The path to the hermetic install of Xcode. Only relevant when | |
52 # use_system_xcode = false. | |
53 hermetic_xcode_path = | |
sdefresne
2016/10/07 13:25:16
nit: do you expect developer to change this variab
erikchen
2016/10/07 23:25:41
I expect to use this when I rev the hermetic toolc
| |
54 rebase_path("//build/mac_files/Xcode.app", "", root_build_dir) | |
43 } | 55 } |
44 | 56 |
45 declare_args() { | 57 declare_args() { |
46 if (is_clang) { | 58 if (is_clang) { |
47 # Clang compiler version. Clang files are placed at version-dependent paths. | 59 # Clang compiler version. Clang files are placed at version-dependent paths. |
48 clang_version = "4.0.0" | 60 clang_version = "4.0.0" |
49 } | 61 } |
50 } | 62 } |
51 | 63 |
52 # Check target_os here instead of is_ios as this file is loaded for secondary | 64 # Check target_os here instead of is_ios as this file is loaded for secondary |
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
101 _tool_wrapper_path = | 113 _tool_wrapper_path = |
102 rebase_path("//build/toolchain/win/tool_wrapper.py", root_build_dir) | 114 rebase_path("//build/toolchain/win/tool_wrapper.py", root_build_dir) |
103 | 115 |
104 stamp_command = "$python_path $_tool_wrapper_path stamp {{output}}" | 116 stamp_command = "$python_path $_tool_wrapper_path stamp {{output}}" |
105 copy_command = | 117 copy_command = |
106 "$python_path $_tool_wrapper_path recursive-mirror {{source}} {{output}}" | 118 "$python_path $_tool_wrapper_path recursive-mirror {{source}} {{output}}" |
107 } else { | 119 } else { |
108 stamp_command = "touch {{output}}" | 120 stamp_command = "touch {{output}}" |
109 copy_command = "ln -f {{source}} {{output}} 2>/dev/null || (rm -rf {{output}} && cp -af {{source}} {{output}})" | 121 copy_command = "ln -f {{source}} {{output}} 2>/dev/null || (rm -rf {{output}} && cp -af {{source}} {{output}})" |
110 } | 122 } |
OLD | NEW |