summaryrefslogtreecommitdiffstats
path: root/QMTest/TestSCons.py
diff options
context:
space:
mode:
Diffstat (limited to 'QMTest/TestSCons.py')
-rw-r--r--QMTest/TestSCons.py18
1 files changed, 18 insertions, 0 deletions
diff --git a/QMTest/TestSCons.py b/QMTest/TestSCons.py
index e1884ac..100d8ba 100644
--- a/QMTest/TestSCons.py
+++ b/QMTest/TestSCons.py
@@ -45,6 +45,7 @@ from TestCommon import __all__
SConsVersion = '0.97'
__all__.extend([ 'TestSCons',
+ 'machine',
'python',
'_exe',
'_obj',
@@ -55,6 +56,23 @@ __all__.extend([ 'TestSCons',
'_dll'
])
+machine_map = {
+ 'i686' : 'i386',
+ 'i586' : 'i386',
+ 'i486' : 'i386',
+}
+
+try:
+ uname = os.uname
+except AttributeError:
+ # Windows doesn't have a uname() function. We could use something like
+ # sys.platform as a fallback, but that's not really a "machine," so
+ # just leave it as None.
+ machine = None
+else:
+ machine = uname()[4]
+ machine = machine_map.get(machine, machine)
+
python = python_executable
_python_ = '"' + python_executable + '"'
_exe = exe_suffix