-
Notifications
You must be signed in to change notification settings - Fork 3
/
Makefile.toml
61 lines (49 loc) · 1.62 KB
/
Makefile.toml
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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
[env]
RUST_BACKTRACE = 0
LLVM_FEATURE = { value = "llvm13-0", condition = { env_not_set = [
"LLVM_FEATURE",
] } }
PROFILE = { value = "dev", condition = { env_not_set = ["PROFILE"] } }
NO_C_SDK_BUILD = { value = "0", condition = { env_not_set = [
"NO_C_SDK_BUILD",
] } }
NO_QIR_SDK_BUILD = { value = "0", condition = { env_not_set = [
"NO_QIR_SDK_BUILD",
] } }
NO_HELPER_LIB_BUILD = { value = "0", condition = { env_not_set = [
"NO_HELPER_LIB_BUILD",
] } }
[tasks.assemble-llvm]
command = "find"
description = "Assemble all LLVM .ll files in this package into bitcode"
args = [".", "-name", "*.ll", "-exec", "llvm-as", "{}", ";"]
[tasks.format-check]
command = "cargo"
args = ["fmt", "--all", "--", "--check"]
[tasks.clippy]
command = "cargo"
args = ["clippy", "--features", "${LLVM_FEATURE}", "--profile", "${PROFILE}"]
[tasks.pre-ci-flow]
dependencies = ["format-check", "clippy"]
[tasks.build]
args = ["build", "--features", "${LLVM_FEATURE}", "--profile", "${PROFILE}"]
[tasks.test]
args = ["test", "--features", "${LLVM_FEATURE}", "--profile", "${PROFILE}"]
[tasks.release-setup]
command = "./scripts/release/setup.sh"
[tasks.release-build]
command = "./scripts/release/build.sh"
args = [
"NO_C_SDK_BUILD: ${NO_C_SDK_BUILD}",
"NO_QIR_SDK_BUILD: ${NO_QIR_SDK_BUILD}",
"NO_HELPER_LIB_BUILD: ${NO_HELPER_LIB_BUILD}",
]
[tasks.release-archive]
command = "./scripts/release/archive.sh"
[tasks.release-quick]
dependencies = ["release-setup", "release-build", "release-archive"]
[tasks.release-clean]
command = "./scripts/release/clean.sh"
[tasks.release-test-e2e]
command = "./scripts/release/test-e2e.sh"
args = ["${@}"]