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 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
42 clang_version = "3.9.0" | 42 clang_version = "3.9.0" |
43 | 43 |
44 if (llvm_force_head_revision) { | 44 if (llvm_force_head_revision) { |
45 # TODO(hans): Remove after next Clang roll. | 45 # TODO(hans): Remove after next Clang roll. |
46 # ToT Clang has a higher version number. | 46 # ToT Clang has a higher version number. |
47 clang_version = "4.0.0" | 47 clang_version = "4.0.0" |
48 } | 48 } |
49 } | 49 } |
50 } | 50 } |
51 | 51 |
52 assert(!use_xcode_clang || is_ios, | 52 if (current_toolchain == default_toolchain) { |
53 "Using Xcode's clang is only supported in iOS builds") | 53 assert(!use_xcode_clang || is_ios, |
54 "Using Xcode's clang is only supported in iOS builds") | |
55 } | |
Dirk Pranke
2016/08/03 16:49:50
This is probably relatively harmless (or even a go
sdefresne
2016/08/03 17:03:40
The changes in build/toolchain/mac/BUILD.gn only c
| |
54 | 56 |
55 # Subdirectory within root_out_dir for shared library files. | 57 # Subdirectory within root_out_dir for shared library files. |
56 # TODO(agrieve): GYP sets this to "lib" for Linux & Android, but this won't work | 58 # TODO(agrieve): GYP sets this to "lib" for Linux & Android, but this won't work |
57 # in GN until support for loadable_module() is added. | 59 # in GN until support for loadable_module() is added. |
58 # See: https://codereview.chromium.org/1236503002/ | 60 # See: https://codereview.chromium.org/1236503002/ |
59 shlib_subdir = "." | 61 shlib_subdir = "." |
60 | 62 |
61 # Root out dir for shared library files. | 63 # Root out dir for shared library files. |
62 root_shlib_dir = root_out_dir | 64 root_shlib_dir = root_out_dir |
63 if (shlib_subdir != ".") { | 65 if (shlib_subdir != ".") { |
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
95 stamp_description = "STAMP {{output}}" | 97 stamp_description = "STAMP {{output}}" |
96 copy_description = "COPY {{source}} {{output}}" | 98 copy_description = "COPY {{source}} {{output}}" |
97 if (host_os == "win") { | 99 if (host_os == "win") { |
98 stamp_command = "$python_path gyp-win-tool stamp {{output}}" | 100 stamp_command = "$python_path gyp-win-tool stamp {{output}}" |
99 copy_command = | 101 copy_command = |
100 "$python_path gyp-win-tool recursive-mirror {{source}} {{output}}" | 102 "$python_path gyp-win-tool recursive-mirror {{source}} {{output}}" |
101 } else { | 103 } else { |
102 stamp_command = "touch {{output}}" | 104 stamp_command = "touch {{output}}" |
103 copy_command = "ln -f {{source}} {{output}} 2>/dev/null || (rm -rf {{output}} && cp -af {{source}} {{output}})" | 105 copy_command = "ln -f {{source}} {{output}} 2>/dev/null || (rm -rf {{output}} && cp -af {{source}} {{output}})" |
104 } | 106 } |
OLD | NEW |