From fb6fdf16a22f42e4a034746dab7deab5ece027bb Mon Sep 17 00:00:00 2001 From: Ben Anderson Date: Thu, 2 Feb 2006 04:15:21 +0000 Subject: [PATCH] (VERY) preliminary amd64 support --- stepmania/src/SConscript | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/stepmania/src/SConscript b/stepmania/src/SConscript index 0f1ca8cec9..a078228a54 100644 --- a/stepmania/src/SConscript +++ b/stepmania/src/SConscript @@ -69,6 +69,8 @@ int main(int argc, char** argv) printf("x86"); #elif defined(__PPC__) printf("ppc"); + #elif defined(__amd64__) + printf("x86_64") #else return 1; #endif @@ -88,6 +90,9 @@ def ArchTest(context): elif ct[1] == "ppc": context.Result(2) return 2; + elif ct[1] == "x86_64": + context.Result(3) + return 3; backtrace_symbols_C = """ #include @@ -190,6 +195,10 @@ if cpuTypeI == 1: env.Append(CPPFLAGS=" -DBACKTRACE_METHOD_X86_LINUX") elif cpuTypeI == 2: 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: print "Couldn't determine CPU type! Bailing!" Exit(1)