Changes in src/tests/pybin/settings.py [f3b9efc:552f5cb]
- File:
-
- 1 edited
-
src/tests/pybin/settings.py (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
src/tests/pybin/settings.py
rf3b9efc r552f5cb 1 from __future__ import print_function 2 3 import os 1 4 import sys 5 6 try : 7 sys.path.append(os.getcwd()) 8 import config 9 10 SRCDIR = os.path.abspath(config.SRCDIR) 11 BUILDDIR = os.path.abspath(config.BUILDDIR) 12 except: 13 print('ERROR: missing config.py, re-run configure script.', file=sys.stderr) 14 sys.exit(1) 2 15 3 16 class Architecture: … … 5 18 'x64' : 'x64', 6 19 'x86-64' : 'x64', 20 'x86_64' : 'x64', 7 21 'x86' : 'x86', 8 22 'i386' : 'x86', … … 25 39 self.cross_compile = False 26 40 try: 27 arch = machine_default()41 arch = config.HOSTARCH 28 42 self.target = Architecture.makeCanonical( arch ) 29 43 except KeyError: … … 66 80 arch = Architecture(options.arch) 67 81 82 68 83 def updateMakeCmd(force, jobs): 69 84 global make 70 85 71 86 make = "make" if not force else ("make -j%i" % jobs) 72 73 74 def set_machine_default( func ):75 global machine_default76 77 machine_default = func
Note:
See TracChangeset
for help on using the changeset viewer.