ADT
aaron-thesis
arm-eh
ast-experimental
cleanup-dtors
deferred_resn
demangler
enum
forall-pointer-decay
jacob/cs343-translation
jenkins-sandbox
new-ast
new-ast-unique-expr
new-env
no_list
persistent-indexer
pthread-emulation
qualifiedEnum
resolv-new
with_gc
Last change
on this file since bacc36c was bacc36c, checked in by Thierry Delisle <tdelisle@…>, 8 years ago |
Major test cleanup by modularizing further into pybin
|
-
Property mode
set to
100644
|
File size:
551 bytes
|
Line | |
---|
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
|
---|
19 |
|
---|
20 | arch = Architecture(options.arch)
|
---|
21 | dry_run = options.dry_run
|
---|
22 | generating = options.regenerate_expected
|
---|
23 | make = './make_command_not_initialized'
|
---|
24 |
|
---|
25 | def 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.