(VERY) preliminary amd64 support
This commit is contained in:
@@ -69,6 +69,8 @@ int main(int argc, char** argv)
|
|||||||
printf("x86");
|
printf("x86");
|
||||||
#elif defined(__PPC__)
|
#elif defined(__PPC__)
|
||||||
printf("ppc");
|
printf("ppc");
|
||||||
|
#elif defined(__amd64__)
|
||||||
|
printf("x86_64")
|
||||||
#else
|
#else
|
||||||
return 1;
|
return 1;
|
||||||
#endif
|
#endif
|
||||||
@@ -88,6 +90,9 @@ def ArchTest(context):
|
|||||||
elif ct[1] == "ppc":
|
elif ct[1] == "ppc":
|
||||||
context.Result(2)
|
context.Result(2)
|
||||||
return 2;
|
return 2;
|
||||||
|
elif ct[1] == "x86_64":
|
||||||
|
context.Result(3)
|
||||||
|
return 3;
|
||||||
|
|
||||||
backtrace_symbols_C = """
|
backtrace_symbols_C = """
|
||||||
#include <execinfo.h>
|
#include <execinfo.h>
|
||||||
@@ -190,6 +195,10 @@ if cpuTypeI == 1:
|
|||||||
env.Append(CPPFLAGS=" -DBACKTRACE_METHOD_X86_LINUX")
|
env.Append(CPPFLAGS=" -DBACKTRACE_METHOD_X86_LINUX")
|
||||||
elif cpuTypeI == 2:
|
elif cpuTypeI == 2:
|
||||||
env.Append(CPPFLAGS=" -DCPU_PPC")
|
env.Append(CPPFLAGS=" -DCPU_PPC")
|
||||||
|
# XXX: Backtrace components for this arch?
|
||||||
|
elif cpuTypeI == 3:
|
||||||
|
env.Append(CPPFLAGS=" -DCPU_X86_64")
|
||||||
|
# XXX: Backtrace components for this arch? Can I use x86 components?
|
||||||
else:
|
else:
|
||||||
print "Couldn't determine CPU type! Bailing!"
|
print "Couldn't determine CPU type! Bailing!"
|
||||||
Exit(1)
|
Exit(1)
|
||||||
|
|||||||
Reference in New Issue
Block a user