-
Notifications
You must be signed in to change notification settings - Fork 5
/
setup.py
executable file
·37 lines (30 loc) · 1.19 KB
/
setup.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
#!/usr/bin/env python3
# PYTHON_ARGCOMPLETE_OK
import sys
import os.path
curdir = os.path.dirname(os.path.abspath(__file__))
sys.path.insert(0, os.path.join(curdir, 'infra'))
import infra
from config.instances import DeltaTags
from config.targets import DeltaTagsTest
setup = infra.Setup(__file__)
setup.add_instance(infra.instances.Clang(DeltaTags.llvm))
setup.add_instance(infra.instances.ClangLTO(DeltaTags.llvm))
for instance in DeltaTags.make_instances():
setup.add_instance(instance)
# microtest target for debugging
setup.add_target(DeltaTagsTest())
# patched SPEC2006
curdir = os.path.dirname(os.path.abspath(__file__))
patches = ['asan', 'dealII-stddef', 'omnetpp-invalid-ptrcheck']
for name in ('gcc', 'perlbench', 'soplex', 'h264ref-sizetagprop-BCBP'):
patches.append('%s/patches/spec2006-%s.patch' % (curdir, name))
setup.add_target(infra.targets.SPEC2006(
# see the following link for more options for source[_type] below:
# http://instrumentation-infra.readthedocs.io/en/master/targets.html#infra.targets.SPEC2006
source='spec-mount-dir', # SET THIS FOR SPEC
source_type='mounted', # SET THIS FOR SPEC
patches=patches
))
if __name__ == '__main__':
setup.main()