 Chromium Code Reviews
 Chromium Code Reviews Issue 1350223004:
  Split the GN 'snapshot_toolchain' logic out into an include file.  (Closed) 
  Base URL: https://chromium.googlesource.com/v8/v8.git@master
    
  
    Issue 1350223004:
  Split the GN 'snapshot_toolchain' logic out into an include file.  (Closed) 
  Base URL: https://chromium.googlesource.com/v8/v8.git@master| Index: snapshot_toolchain.gni | 
| diff --git a/snapshot_toolchain.gni b/snapshot_toolchain.gni | 
| new file mode 100644 | 
| index 0000000000000000000000000000000000000000..418af546d9840a793c566caf92a7db4c5f1c6f6b | 
| --- /dev/null | 
| +++ b/snapshot_toolchain.gni | 
| @@ -0,0 +1,23 @@ | 
| +# Copyright 2014 The Chromium Authors. All rights reserved. | 
| 
jochen (gone - plz use gerrit)
2015/09/21 15:10:49
please use the v8 license header. Essentially "The
 | 
| +# Use of this source code is governed by a BSD-style license that can be | 
| +# found in the LICENSE file. | 
| + | 
| +# The snapshot needs to be compiled for the host, but compiled with | 
| +# a toolchain that matches the bit-width of the target. | 
| + | 
| +# TODO(GYP): For now we only support 32-bit little-endian target builds from an | 
| +# x64 Linux host. Eventually we need to support all of the host/target | 
| +# configurations v8 runs on. | 
| +if (host_cpu == "x64" && host_os == "linux") { | 
| + if (target_cpu == "arm" || target_cpu == "mipsel" || target_cpu == "x86") { | 
| + snapshot_toolchain = "//build/toolchain/linux:clang_x86" | 
| + } else if (target_cpu == "x64") { | 
| + snapshot_toolchain = "//build/toolchain/linux:clang_x64" | 
| + } else { | 
| + assert(false, "Need environment for this arch") | 
| + } | 
| +} else { | 
| + snapshot_toolchain = default_toolchain | 
| +} | 
| + | 
| + |