source: src/tests/pybin/settings.py @ 099a40d

ADTaaron-thesisarm-ehast-experimentalcleanup-dtorsdeferred_resndemanglerenumforall-pointer-decayjacob/cs343-translationjenkins-sandboxnew-astnew-ast-unique-exprnew-envno_listpersistent-indexerpthread-emulationqualifiedEnumresolv-newwith_gc
Last change on this file since 099a40d was 209383b, checked in by Thierry Delisle <tdelisle@…>, 6 years ago

Tests: moved debug flags to settings to eliminate parameters and functools

  • Property mode set to 100644
File size: 714 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        global debug
20        global debugFlag
21
22        arch       = Architecture(options.arch)
23        dry_run    = options.dry_run
24        generating = options.regenerate_expected
25        make       = './make_command_not_initialized'
26        debug        = "debug" if options.debug else "no debug"
27        debugFlag  = """DEBUG_FLAGS="%s" """ % ("-debug" if debug else "-nodebug")
28
29def updateMakeCmd(force, jobs):
30        global make
31
32        make = "make" if force else ("make -j%i" % jobs)
Note: See TracBrowser for help on using the repository browser.