Index: tools/gn/args.cc |
diff --git a/tools/gn/args.cc b/tools/gn/args.cc |
index 3bb40b415743d7fc422230e56adf898ceba5c43e..5af408fbc7fa2760d38b82bc165b527aab904643 100644 |
--- a/tools/gn/args.cc |
+++ b/tools/gn/args.cc |
@@ -302,6 +302,8 @@ void Args::SetSystemVarsLocked(Scope* dest) const { |
os = "android"; |
#elif defined(OS_NETBSD) |
os = "netbsd"; |
+#elif defined(OS_AIX) |
+ os = "aix"; |
#else |
#error Unknown OS type. |
#endif |
@@ -331,7 +333,10 @@ void Args::SetSystemVarsLocked(Scope* dest) const { |
arch = kMips; |
else if (os_arch == "s390x") |
arch = kS390X; |
- else if (os_arch == "mips") |
+ else if (os_arch == "ppc64" || os_arch == "ppc64le") |
+ // We handle the endianness inside build/config/BUILDCONFIG.gn. |
Dirk Pranke
2017/04/19 23:19:30
per the discussion on the other CL, we probably ne
rayb
2017/04/25 00:36:36
Done.
|
+ // This allows us to use the same toolchain as ppc64 BE |
+ // and specific flags are included using the host_byteorder logic. |
arch = kPPC64; |
else |
CHECK(false) << "OS architecture not handled. (" << os_arch << ")"; |