source: src/tests/pybin/settings.py @ bacc36c

aaron-thesisarm-ehcleanup-dtorsdeferred_resndemanglerjacob/cs343-translationjenkins-sandboxnew-astnew-ast-unique-exprnew-envno_listpersistent-indexerresolv-newwith_gc
Last change on this file since bacc36c was bacc36c, checked in by Thierry Delisle <tdelisle@…>, 4 years ago

Major test cleanup by modularizing further into pybin

  • Property mode set to 100644
File size: 551 bytes
Line 
1
2class Architecture:
3        def __init__(self, cmd):
4                if cmd:
5                        self.cross_compile = True
6                        self.target = cmd
7                else:
8                        self.cross_compile = False
9                        self.target = 'x64'
10
11        def toString(self):
12                return self.target
13
14def init( options ):
15        global arch
16        global dry_run
17        global generating
18        global make
19
20        arch       = Architecture(options.arch)
21        dry_run    = options.dry_run
22        generating = options.regenerate_expected
23        make       = './make_command_not_initialized'
24
25def updateMakeCmd(force, jobs):
26        global make
27
28        make = "make" if force else ("make -j%i" % jobs)
Note: See TracBrowser for help on using the repository browser.