Changes in src/tests/pybin/settings.py [552f5cb:f3b9efc]
- File:
-
- 1 edited
-
src/tests/pybin/settings.py (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
src/tests/pybin/settings.py
r552f5cb rf3b9efc 1 from __future__ import print_function2 3 import os4 1 import sys 5 6 try :7 sys.path.append(os.getcwd())8 import config9 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)15 2 16 3 class Architecture: … … 18 5 'x64' : 'x64', 19 6 'x86-64' : 'x64', 20 'x86_64' : 'x64',21 7 'x86' : 'x86', 22 8 'i386' : 'x86', … … 39 25 self.cross_compile = False 40 26 try: 41 arch = config.HOSTARCH27 arch = machine_default() 42 28 self.target = Architecture.makeCanonical( arch ) 43 29 except KeyError: … … 80 66 arch = Architecture(options.arch) 81 67 82 83 68 def updateMakeCmd(force, jobs): 84 69 global make 85 70 86 71 make = "make" if not force else ("make -j%i" % jobs) 72 73 74 def set_machine_default( func ): 75 global machine_default 76 77 machine_default = func
Note:
See TracChangeset
for help on using the changeset viewer.