Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(323)

Side by Side Diff: build/config/host_byteorder.gni

Issue 2815453004: For building v8 using gn on aix_ppc64, linux_s390x and linux_ppc64. (Closed)
Patch Set: addressed reviews Created 3 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « build/config/get_host_byteorder.py ('k') | build/config/sysroot.gni » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 # Copyright (c) 2017 The Chromium Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file.
4
5 # This header file defines the "host_byteorder" variable.
Nico 2017/04/25 22:42:31 Please very clearly state in this file that this i
rayb 2017/04/26 15:49:03 Done.
6 declare_args() {
7 host_byteorder = "undefined"
8 }
9
10 # Detect host byteorder
11 # ppc64 can be either BE or LE
12 if (host_cpu == "ppc64") {
13 if (current_os == "aix") {
14 host_byteorder = "big"
15 } else {
16 # Only use the script when absolutely necessary
17 host_byteorder =
18 exec_script("//build/config/get_host_byteorder.py", [], "trim string")
19 }
20 } else if (host_cpu == "ppc" || host_cpu == "s390" || host_cpu == "s390x" ||
21 host_cpu == "mips" || host_cpu == "mips64") {
22 host_byteorder = "big"
23 } else {
24 host_byteorder = "little"
25 }
OLDNEW
« no previous file with comments | « build/config/get_host_byteorder.py ('k') | build/config/sysroot.gni » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698