Skip to content

Commit 8e204fd

Browse files
committed
refactor: Introduce a virtual manifest
Move the workspace configuration to a virtual manifest. This reorganization makes a more clear separation between package contents and support files that don't get distributed. It will also make it easier to merge this repository with `compiler-builtins` if that is done at some point, which had a similar update done in [1]. LICENSE.txt and README.md are symlinkedinto the new directory to ensure they get included in the package. [1]: rust-lang/compiler-builtins#702
1 parent 8e71cfe commit 8e204fd

File tree

7 files changed

+305
-302
lines changed

7 files changed

+305
-302
lines changed

Cargo.toml

+37
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
[workspace]
2+
resolver = "2"
3+
members = [
4+
"libm",
5+
"crates/libm-macros",
6+
"crates/libm-test",
7+
"crates/musl-math-sys",
8+
"crates/util",
9+
]
10+
default-members = [
11+
"libm",
12+
"crates/libm-macros",
13+
"crates/libm-test"
14+
]
15+
exclude = [
16+
# Requires `panic = abort` so can't be a member of the workspace
17+
"crates/compiler-builtins-smoke-test",
18+
]
19+
20+
# The default release profile is unchanged.
21+
22+
# Release mode with debug assertions
23+
[profile.release-checked]
24+
inherits = "release"
25+
debug-assertions = true
26+
overflow-checks = true
27+
28+
# Release with maximum optimizations, which is very slow to build. This is also
29+
# what is needed to check `no-panic`.
30+
[profile.release-opt]
31+
inherits = "release"
32+
codegen-units = 1
33+
lto = "fat"
34+
35+
[profile.bench]
36+
# Required for iai-callgrind
37+
debug = true

ci/ci-util.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
COMMAND:
2525
generate-matrix
2626
Calculate a matrix of which functions had source change, print that as
27-
a JSON object.
27+
a JSON object.
2828
2929
locate-baseline [--download] [--extract]
3030
Locate the most recent benchmark baseline available in CI and, if flags

0 commit comments

Comments
 (0)