Skip to content

Commit 5309925

Browse files
misc(config): unstable flags to improve compilation times
Signed-off-by: Anhad Singh <[email protected]>
1 parent ab409b8 commit 5309925

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

src/.cargo/config.toml

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,14 @@ build-std-features = ["compiler-builtins-mem"]
44

55
[build]
66
target = "./.cargo/x86_64-aero_os.json"
7-
rustflags = ["-Cforce-frame-pointers=yes"]
7+
rustflags = [
8+
# Miscellaneous:
9+
"-Cforce-frame-pointers=yes",
10+
11+
# Unstable faster compilation time flags:
12+
#
13+
# https://blog.rust-lang.org/2023/11/09/parallel-rustc.html
14+
"-Zthreads=8",
15+
# https://blog.rust-lang.org/inside-rust/2023/12/22/trait-system-refactor-initiative.html
16+
"-Znext-solver=coherence",
17+
]

0 commit comments

Comments
 (0)