about summary refs log tree commit diff
path: root/library/compiler-builtins/Cargo.toml
blob: 956d738f3b1f1fc0b5bf595e787c740400a0914f (plain)
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
[workspace]
resolver = "2"
members = [
    "builtins-shim",
    "builtins-test",
    "crates/libm-macros",
    "crates/musl-math-sys",
    "crates/panic-handler",
    "crates/symbol-check",
    "crates/util",
    "libm",
    "libm-test",
]

default-members = [
    "builtins-shim",
    "builtins-test",
    "crates/libm-macros",
    "libm",
    "libm-test",
]

exclude = [
    # `builtins-test-intrinsics` needs the feature `compiler-builtins` enabled
    # and `mangled-names` disabled, which is the opposite of what is needed for
    # other tests, so it makes sense to keep it out of the workspace.
    "builtins-test-intrinsics",
    # We test via the `builtins-shim` crate, so exclude the `compiler-builtins`
    # that has a dependency on `core`. See `builtins-shim/Cargo.toml` for more
    # details.
    "compiler-builtins",
]

[profile.release]
panic = "abort"

[profile.dev]
panic = "abort"

# Release mode with debug assertions
[profile.release-checked]
inherits = "release"
debug-assertions = true
overflow-checks = true

# Release with maximum optimizations, which is very slow to build. This is also
# what is needed to check `no-panic`.
[profile.release-opt]
inherits = "release"
codegen-units = 1
lto = "fat"

[profile.bench]
# Required for iai-callgrind
debug = true