Skip to content

Commit

Permalink
ppc recognition fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
FrodeSolheim committed Oct 4, 2015
1 parent 66be555 commit e8e5d74
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions dist/arch.py
Expand Up @@ -9,4 +9,8 @@
if platform.architecture()[0] == "64bit":
print("x86-64")
sys.exit(0)
if machine.startswith("power"):
if platform.architecture()[0] == "32bit":
print("ppc")
sys.exit(0)
raise Exception("Unknown platform")
2 changes: 1 addition & 1 deletion src/include/sysdeps.h
Expand Up @@ -47,7 +47,7 @@ using namespace std;
#define CPU_i386 1
#elif defined(__arm__) || defined(_M_ARM)
#define CPU_arm 1
#elif defined(__powerpc__) || defined(_M_PPC)
#elif defined(__powerpc__) || defined(__ppc__) || defined(_M_PPC)
#define CPU_powerpc 1
#else
#error unrecognized CPU type
Expand Down

0 comments on commit e8e5d74

Please sign in to comment.