ADTaaron-thesisarm-ehcleanup-dtorsdeferred_resndemanglerenumforall-pointer-decayjacob/cs343-translationjenkins-sandboxnew-astnew-ast-unique-exprnew-envno_listpersistent-indexerpthread-emulationqualifiedEnumresolv-newwith_gc
Last change
on this file since 209383b was
209383b,
checked in by Thierry Delisle <tdelisle@…>, 5 years ago
|
Tests: moved debug flags to settings to eliminate parameters and functools
|
-
Property mode set to
100644
|
File size:
714 bytes
|
Rev | Line | |
---|
[bacc36c] | 1 | |
---|
| 2 | class 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 | |
---|
| 14 | def init( options ): |
---|
| 15 | global arch |
---|
| 16 | global dry_run |
---|
| 17 | global generating |
---|
| 18 | global make |
---|
[209383b] | 19 | global debug |
---|
| 20 | global debugFlag |
---|
[bacc36c] | 21 | |
---|
| 22 | arch = Architecture(options.arch) |
---|
| 23 | dry_run = options.dry_run |
---|
| 24 | generating = options.regenerate_expected |
---|
| 25 | make = './make_command_not_initialized' |
---|
[209383b] | 26 | debug = "debug" if options.debug else "no debug" |
---|
| 27 | debugFlag = """DEBUG_FLAGS="%s" """ % ("-debug" if debug else "-nodebug") |
---|
[bacc36c] | 28 | |
---|
| 29 | def 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.