Chromium Code Reviews| Index: BUILD.gn |
| diff --git a/BUILD.gn b/BUILD.gn |
| index 1ab72e343d99249acf10d7a67a1866842c2d44ce..70b50e4291e1a5f1627ecbcb33c4e69cf7953492 100644 |
| --- a/BUILD.gn |
| +++ b/BUILD.gn |
| @@ -107,19 +107,6 @@ declare_args() { |
| v8_enable_gdbjit = ((v8_current_cpu == "x86" || v8_current_cpu == "x64" || |
| v8_current_cpu == "x87") && (is_linux || is_mac)) || |
| (v8_current_cpu == "ppc64" && is_linux) |
| - |
| - # Set v8_host_byteorder |
| - v8_host_byteorder = "little" |
| - |
| - # ppc64 can be either BE or LE |
| - if (host_cpu == "ppc64") { |
| - v8_host_byteorder = |
| - exec_script("//tools/get_byteorder.py", [], "trim string") |
| - } |
| - if (host_cpu == "ppc" || host_cpu == "s390" || host_cpu == "s390x" || |
| - host_cpu == "mips" || host_cpu == "mips64") { |
| - v8_host_byteorder = "big" |
| - } |
|
Dirk Pranke
2017/04/18 20:31:35
I think we should leave this here, at least until
rayb
2017/04/25 00:39:06
As per the discussion on the other CL, we now use
|
| } |
| # Derived defaults. |
| @@ -379,7 +366,7 @@ config("toolchain") { |
| if (v8_current_cpu == "s390x") { |
| defines += [ "V8_TARGET_ARCH_S390X" ] |
| } |
| - if (v8_host_byteorder == "little") { |
| + if (host_byteorder == "little") { |
| defines += [ "V8_TARGET_ARCH_S390_LE_SIM" ] |
| } else { |
| cflags += [ "-march=z196" ] |
| @@ -390,9 +377,9 @@ config("toolchain") { |
| if (v8_current_cpu == "ppc64") { |
| defines += [ "V8_TARGET_ARCH_PPC64" ] |
| } |
| - if (v8_host_byteorder == "little") { |
| + if (host_byteorder == "little") { |
| defines += [ "V8_TARGET_ARCH_PPC_LE" ] |
| - } else if (v8_host_byteorder == "big") { |
| + } else if (host_byteorder == "big") { |
| defines += [ "V8_TARGET_ARCH_PPC_BE" ] |
| if (current_os == "aix") { |
| cflags += [ |
| @@ -406,6 +393,7 @@ config("toolchain") { |
| } |
| } |
| } |
| + |
| if (v8_current_cpu == "x86") { |
| defines += [ "V8_TARGET_ARCH_IA32" ] |
| if (is_win) { |
| @@ -2465,6 +2453,16 @@ v8_component("v8_libbase") { |
| "dl", |
| "rt", |
| ] |
| + } else if (current_os == "aix") { |
| + sources += [ |
| + "src/base/debug/stack_trace_posix.cc", |
| + "src/base/platform/platform-aix.cc", |
| + ] |
| + |
| + libs = [ |
| + "dl", |
| + "rt", |
| + ] |
| } else if (is_android) { |
| if (current_toolchain == host_toolchain) { |
| libs = [ |