forked from stlab/libraries
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.py
27 lines (20 loc) · 1.11 KB
/
build.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
import copy
from cpt.packager import ConanMultiPackager
if __name__ == "__main__":
builder = ConanMultiPackager(build_policy = "missing", archs = ["x86_64"], options = ["stlab:testing=True"])
# apple_clang_versions= ["12.0"]
builder.add_common_builds()
filtered_builds = []
for settings, options, env_vars, build_requires, reference in builder.items:
#TODO(fernando): auto and portable Task Systems are disabled until we fix the deadlock
# using portable in Windows.
# opts_auto = copy.deepcopy(options)
# opts_auto["stlab:task_system"] = "auto"
# filtered_builds.append([settings, opts_auto, env_vars, build_requires, reference])
if settings["compiler"] == "clang":
opts_libdispatch = copy.deepcopy(options)
opts_libdispatch["stlab:task_system"] = "libdispatch"
filtered_builds.append([settings, opts_libdispatch, env_vars, build_requires, reference])
filtered_builds.append([settings, options, env_vars, build_requires, reference])
builder.builds = filtered_builds
builder.run()