OLD | NEW |
1 # Copyright 2015 the V8 project authors. All rights reserved. | 1 # Copyright 2015 the V8 project authors. All rights reserved. |
2 # Redistribution and use in source and binary forms, with or without | 2 # Redistribution and use in source and binary forms, with or without |
3 # modification, are permitted provided that the following conditions are | 3 # modification, are permitted provided that the following conditions are |
4 # met: | 4 # met: |
5 # | 5 # |
6 # * Redistributions of source code must retain the above copyright | 6 # * Redistributions of source code must retain the above copyright |
7 # notice, this list of conditions and the following disclaimer. | 7 # notice, this list of conditions and the following disclaimer. |
8 # * Redistributions in binary form must reproduce the above | 8 # * Redistributions in binary form must reproduce the above |
9 # copyright notice, this list of conditions and the following | 9 # copyright notice, this list of conditions and the following |
10 # disclaimer in the documentation and/or other materials provided | 10 # disclaimer in the documentation and/or other materials provided |
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
69 # host, unless this is a ChromeOS build, in which case the same toolchain | 69 # host, unless this is a ChromeOS build, in which case the same toolchain |
70 # (Clang or GCC) will be used for target and host by default. | 70 # (Clang or GCC) will be used for target and host by default. |
71 if (is_chromeos && !is_clang) { | 71 if (is_chromeos && !is_clang) { |
72 _clang = "" | 72 _clang = "" |
73 } else { | 73 } else { |
74 _clang = "clang_" | 74 _clang = "clang_" |
75 } | 75 } |
76 | 76 |
77 if (v8_current_cpu == "x64" || v8_current_cpu == "x86") { | 77 if (v8_current_cpu == "x64" || v8_current_cpu == "x86") { |
78 _cpus = v8_current_cpu | 78 _cpus = v8_current_cpu |
79 } else if (v8_current_cpu == "arm64" || v8_current_cpu == "mips64el") { | 79 } else if (v8_current_cpu == "arm64" || v8_current_cpu == "mips64el" || |
| 80 v8_current_cpu == "mips64") { |
80 _cpus = "x64_v8_${v8_current_cpu}" | 81 _cpus = "x64_v8_${v8_current_cpu}" |
81 } else if (v8_current_cpu == "arm" || v8_current_cpu == "mipsel") { | 82 } else if (v8_current_cpu == "arm" || v8_current_cpu == "mipsel" || |
| 83 v8_current_cpu == "mips") { |
82 _cpus = "x86_v8_${v8_current_cpu}" | 84 _cpus = "x86_v8_${v8_current_cpu}" |
83 } else { | 85 } else { |
84 # This branch should not be reached; leave _cpus blank so the assert | 86 # This branch should not be reached; leave _cpus blank so the assert |
85 # below will fail. | 87 # below will fail. |
86 _cpus = "" | 88 _cpus = "" |
87 } | 89 } |
88 | 90 |
89 if (_cpus != "") { | 91 if (_cpus != "") { |
90 v8_snapshot_toolchain = "//build/toolchain/${host_os}:${_clang}${_cpus}" | 92 v8_snapshot_toolchain = "//build/toolchain/${host_os}:${_clang}${_cpus}" |
91 } | 93 } |
92 } | 94 } |
93 } | 95 } |
94 | 96 |
95 assert(v8_snapshot_toolchain != "", | 97 assert(v8_snapshot_toolchain != "", |
96 "Do not know how to build a snapshot for $current_toolchain " + | 98 "Do not know how to build a snapshot for $current_toolchain " + |
97 "on $host_os $host_cpu") | 99 "on $host_os $host_cpu") |
OLD | NEW |