summary refs log tree commit diff stats
path: root/lib
diff options
context:
space:
mode:
authordef <dennis@felsin9.de>2015-07-31 23:55:31 +0200
committerdef <dennis@felsin9.de>2015-07-31 23:55:31 +0200
commit130605567e93902df1cc65dade92ec433fdf9dff (patch)
treed451ea75cac40408a2967118e331bb66d2ab7c2f /lib
parent3d6a8b401a22f02c6dd604bc6caac09f415d3ddf (diff)
downloadNim-130605567e93902df1cc65dade92ec433fdf9dff.tar.gz
Add powerpc64el support (untested)
Diffstat (limited to 'lib')
-rw-r--r--lib/system.nim4
-rw-r--r--lib/system/platforms.nim2
2 files changed, 4 insertions, 2 deletions
diff --git a/lib/system.nim b/lib/system.nim
index 56b62d111..19af433de 100644
--- a/lib/system.nim
+++ b/lib/system.nim
@@ -1150,8 +1150,8 @@ const
 
   hostCPU* {.magic: "HostCPU".}: string = ""
     ## a string that describes the host CPU. Possible values:
-    ## "i386", "alpha", "powerpc", "powerpc64", "sparc", "amd64", "mips",
-    ## "mipsel", "arm".
+    ## "i386", "alpha", "powerpc", "powerpc64", "powerpc64el", "sparc",
+    ## "amd64", "mips", "mipsel", "arm".
 
   seqShallowFlag = low(int)
 
diff --git a/lib/system/platforms.nim b/lib/system/platforms.nim
index 0472181f5..243f48a3a 100644
--- a/lib/system/platforms.nim
+++ b/lib/system/platforms.nim
@@ -18,6 +18,7 @@ type
     alpha,                     ## Alpha processor
     powerpc,                   ## 32 bit PowerPC
     powerpc64,                 ## 64 bit PowerPC
+    powerpc64el,               ## Little Endian 64 bit PowerPC
     sparc,                     ## Sparc based processor
     ia64,                      ## Intel Itanium
     amd64,                     ## x86_64 (AMD64); 64 bit x86 compatible CPU
@@ -64,6 +65,7 @@ const
                elif defined(alpha): CpuPlatform.alpha
                elif defined(powerpc): CpuPlatform.powerpc
                elif defined(powerpc64): CpuPlatform.powerpc64
+               elif defined(powerpc64el): CpuPlatform.powerpc64el
                elif defined(sparc): CpuPlatform.sparc
                elif defined(ia64): CpuPlatform.ia64
                elif defined(amd64): CpuPlatform.amd64