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 25 matching lines...) Expand all Loading... |
36 # TODO(GYP): For now we only support 32-bit little-endian target builds from an | 36 # TODO(GYP): For now we only support 32-bit little-endian target builds from an |
37 # x64 Linux host. Eventually we need to support all of the host/target | 37 # x64 Linux host. Eventually we need to support all of the host/target |
38 # configurations v8 runs on. | 38 # configurations v8 runs on. |
39 if (v8_snapshot_toolchain == "") { | 39 if (v8_snapshot_toolchain == "") { |
40 if (host_cpu == "x64" && host_os == "linux") { | 40 if (host_cpu == "x64" && host_os == "linux") { |
41 if (current_cpu == "arm" || current_cpu == "mipsel" || | 41 if (current_cpu == "arm" || current_cpu == "mipsel" || |
42 current_cpu == "x86") { | 42 current_cpu == "x86") { |
43 _snapshot_cpu = "x86" | 43 _snapshot_cpu = "x86" |
44 } else { | 44 } else { |
45 assert(current_cpu == "arm64" || current_cpu == "x64" || | 45 assert(current_cpu == "arm64" || current_cpu == "x64" || |
46 current_cpu == "mipsel64", | 46 current_cpu == "mips64el", |
47 "Need environment for this arch: $current_cpu") | 47 "Need environment for this arch: $current_cpu") |
48 _snapshot_cpu = "x64" | 48 _snapshot_cpu = "x64" |
49 } | 49 } |
50 | 50 |
51 if (v8_current_cpu != _snapshot_cpu) { | 51 if (v8_current_cpu != _snapshot_cpu) { |
52 _cpus = "${_snapshot_cpu}_v8_${v8_current_cpu}" | 52 _cpus = "${_snapshot_cpu}_v8_${v8_current_cpu}" |
53 } else { | 53 } else { |
54 _cpus = _snapshot_cpu | 54 _cpus = _snapshot_cpu |
55 } | 55 } |
56 | 56 |
57 if ((host_os == "linux" && current_os == "android") || is_clang) { | 57 if ((host_os == "linux" && current_os == "android") || is_clang) { |
58 v8_snapshot_toolchain = "//build/toolchain/linux:clang_${_cpus}" | 58 v8_snapshot_toolchain = "//build/toolchain/linux:clang_${_cpus}" |
59 } else { | 59 } else { |
60 v8_snapshot_toolchain = "//build/toolchain/linux:${_cpus}" | 60 v8_snapshot_toolchain = "//build/toolchain/linux:${_cpus}" |
61 } | 61 } |
62 } else if (host_os == "mac" && current_os == "win") { | 62 } else if (host_os == "mac" && current_os == "win") { |
63 assert(v8_current_cpu == current_cpu, | 63 assert(v8_current_cpu == current_cpu, |
64 "v8 target must match the regular target on this platform") | 64 "v8 target must match the regular target on this platform") |
65 v8_snapshot_toolchain = "//build/toolchain/mac:clang_$current_cpu" | 65 v8_snapshot_toolchain = "//build/toolchain/mac:clang_$current_cpu" |
66 } else { | 66 } else { |
67 v8_snapshot_toolchain = default_toolchain | 67 v8_snapshot_toolchain = default_toolchain |
68 } | 68 } |
69 } | 69 } |
OLD | NEW |