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

Unified Diff: BUILD.gn

Issue 2809963004: For building v8 using gn on aix_ppc64, linux_s390x and linux_ppc64. (Closed)
Patch Set: rebased, uses host_byteorder.gni now 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « .gn ('k') | src/base/build_config.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: BUILD.gn
diff --git a/BUILD.gn b/BUILD.gn
index 7e9d47683facc9c385d095551027645d4e21acbb..48f00860b6247b7d1ada507462d124d3a021e01a 100644
--- a/BUILD.gn
+++ b/BUILD.gn
@@ -5,6 +5,7 @@
import("//build/config/android/config.gni")
import("//build/config/arm.gni")
import("//build/config/dcheck_always_on.gni")
+import("//build/config/host_byteorder.gni")
import("//build/config/mips.gni")
import("//build/config/sanitizers/sanitizers.gni")
@@ -107,19 +108,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"
- }
}
# Derived defaults.
@@ -379,7 +367,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 +378,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 +394,7 @@ config("toolchain") {
}
}
}
+
if (v8_current_cpu == "x86") {
defines += [ "V8_TARGET_ARCH_IA32" ]
if (is_win) {
@@ -2467,6 +2456,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 = [
« no previous file with comments | « .gn ('k') | src/base/build_config.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698