Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/tests/pybin/settings.py

    rf3b9efc r552f5cb  
     1from __future__ import print_function
     2
     3import os
    14import sys
     5
     6try :
     7        sys.path.append(os.getcwd())
     8        import config
     9
     10        SRCDIR = os.path.abspath(config.SRCDIR)
     11        BUILDDIR = os.path.abspath(config.BUILDDIR)
     12except:
     13        print('ERROR: missing config.py, re-run configure script.', file=sys.stderr)
     14        sys.exit(1)
    215
    316class Architecture:
     
    518                'x64'                   : 'x64',
    619                'x86-64'                : 'x64',
     20                'x86_64'                : 'x64',
    721                'x86'                   : 'x86',
    822                'i386'          : 'x86',
     
    2539                        self.cross_compile = False
    2640                        try:
    27                                 arch = machine_default()
     41                                arch = config.HOSTARCH
    2842                                self.target = Architecture.makeCanonical( arch )
    2943                        except KeyError:
     
    6680        arch       = Architecture(options.arch)
    6781
     82
    6883def updateMakeCmd(force, jobs):
    6984        global make
    7085
    7186        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.