| OLD | NEW |
| 1 # Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 # Copyright (c) 2013 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 # ============================================================================= | 5 # ============================================================================= |
| 6 # BUILD FLAGS | 6 # BUILD FLAGS |
| 7 # ============================================================================= | 7 # ============================================================================= |
| 8 # | 8 # |
| 9 # This block lists input arguments to the build, along with their default | 9 # This block lists input arguments to the build, along with their default |
| 10 # values. GN requires listing them explicitly so it can validate input and have | 10 # values. GN requires listing them explicitly so it can validate input and have |
| (...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 72 is_win = true | 72 is_win = true |
| 73 } else if (os == "mac") { | 73 } else if (os == "mac") { |
| 74 is_android = false | 74 is_android = false |
| 75 is_chromeos = false | 75 is_chromeos = false |
| 76 is_ios = false | 76 is_ios = false |
| 77 is_linux = false | 77 is_linux = false |
| 78 is_mac = true | 78 is_mac = true |
| 79 is_nacl = false | 79 is_nacl = false |
| 80 is_posix = true | 80 is_posix = true |
| 81 is_win = false | 81 is_win = false |
| 82 is_clang = true # Always use clang on Mac. |
| 82 } else if (os == "android") { | 83 } else if (os == "android") { |
| 83 is_android = false | 84 is_android = false |
| 84 is_chromeos = false | 85 is_chromeos = false |
| 85 is_ios = false | 86 is_ios = false |
| 86 is_linux = true | 87 is_linux = true |
| 87 is_mac = false | 88 is_mac = false |
| 88 is_nacl = false | 89 is_nacl = false |
| 89 is_posix = true | 90 is_posix = true |
| 90 is_win = false | 91 is_win = false |
| 91 } else if (os == "chromeos") { | 92 } else if (os == "chromeos") { |
| (...skipping 282 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 374 # Special toolchain for ARM cross-compiling. | 375 # Special toolchain for ARM cross-compiling. |
| 375 set_default_toolchain("//build/toolchain/linux:arm-cross-compile") | 376 set_default_toolchain("//build/toolchain/linux:arm-cross-compile") |
| 376 } else { | 377 } else { |
| 377 # Use whatever GCC is on the current platform. | 378 # Use whatever GCC is on the current platform. |
| 378 set_default_toolchain(host_toolchain) | 379 set_default_toolchain(host_toolchain) |
| 379 } | 380 } |
| 380 } else if (is_mac) { | 381 } else if (is_mac) { |
| 381 host_toolchain = "//build/toolchain/mac:clang" | 382 host_toolchain = "//build/toolchain/mac:clang" |
| 382 set_default_toolchain(host_toolchain) | 383 set_default_toolchain(host_toolchain) |
| 383 } | 384 } |
| OLD | NEW |