summaryrefslogtreecommitdiff
path: root/configure
diff options
context:
space:
mode:
authorMichael Dawson <michael_dawson@ca.ibm.com>2015-07-07 14:15:03 -0400
committerRod Vagg <rod@vagg.org>2015-08-04 11:56:16 -0700
commitb4226e797a43adec8f90c9d3bb4f0c39901acfea (patch)
treee7253738526064f1f38e0b36952b6b7cfc9ebd74 /configure
parente6ab2d92bc15c0f122ddc9310a9d69499008703a (diff)
downloadandroid-node-v8-b4226e797a43adec8f90c9d3bb4f0c39901acfea.tar.gz
android-node-v8-b4226e797a43adec8f90c9d3bb4f0c39901acfea.tar.bz2
android-node-v8-b4226e797a43adec8f90c9d3bb4f0c39901acfea.zip
build: first set of updates to enable PPC support
These are the core changes that allow pLinux BE/LE compile. They don't include all of the changes needed for AIX which will follow once we have pLinux up and running in the builds PR-URL: https://github.com/nodejs/io.js/pull/2124 Reviewed-By: Ben Noordhuis <ben@strongloop.com> Reviewed-By: Johan Bergstrom <bugs@bergstroem.nu>
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure6
1 files changed, 5 insertions, 1 deletions
diff --git a/configure b/configure
index 63d4c25810..8d52a1eb28 100755
--- a/configure
+++ b/configure
@@ -26,7 +26,8 @@ import nodedownload
parser = optparse.OptionParser()
valid_os = ('win', 'mac', 'solaris', 'freebsd', 'openbsd', 'linux', 'android')
-valid_arch = ('arm', 'arm64', 'ia32', 'mips', 'mipsel', 'x32', 'x64', 'x86')
+valid_arch = ('arm', 'arm64', 'ia32', 'mips', 'mipsel', 'ppc', 'ppc64', 'x32',
+ 'x64')
valid_arm_float_abi = ('soft', 'softfp', 'hard')
valid_mips_arch = ('loongson', 'r1', 'r2', 'r6', 'rx')
valid_mips_fpu = ('fp32', 'fp64', 'fpxx')
@@ -545,6 +546,8 @@ def host_arch_cc():
'__arm__' : 'arm',
'__i386__' : 'ia32',
'__mips__' : 'mips',
+ '__PPC64__' : 'ppc64',
+ '__PPC__' : 'ppc',
'__x86_64__' : 'x64',
}
@@ -620,6 +623,7 @@ def configure_node(o):
target_arch = 'ia32'
o['variables']['host_arch'] = host_arch
o['variables']['target_arch'] = target_arch
+ o['variables']['node_byteorder'] = sys.byteorder
cross_compiling = target_arch != host_arch
want_snapshots = not options.without_snapshot