-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Cargo.toml
76 lines (66 loc) · 2.08 KB
/
Cargo.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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
cargo-features = ["profile-rustflags"]
[workspace.package]
version = "0.0.0"
publish = false
edition = "2021"
authors = [ "Joshua Lee Junon <junon@oro.sh> (https://github.com/qix-)" ]
repository = "https://github.com/oro-os/kernel"
[workspace]
resolver = "2"
members = [
"oro-arch-x64",
"oro-boot-limine-x64",
"oro-kernel",
"oro-ser2mem",
"oro-ser2mem-proc",
]
default-members = [
"oro-kernel"
]
[profile.dev]
opt-level = 1 # Basic optimizations
debug = "full" # Generate full debug information
debug-assertions = true # Turn on debug assertions
overflow-checks = true # Turn on overflow checks
incremental = true # Enable incremental building
strip = false # Don't strip symbols from the binary
lto = false # perform "thin local" LTO
panic = "abort" # Use "abort" panic strategy
[profile.test-dev]
inherits = "dev"
rustflags = [
"--cfg", "oro_test"
]
[profile.test-release]
inherits = "release"
opt-level = "s" # Optimize for binary size
debug = "line-tables-only" # Generate line/column tables only
strip = "symbols" # Don't strip symbols from binary
debug-assertions = true # Turn on debug assertions
rustflags = [
"--cfg", "oro_test"
]
#overflow-checks = true # Turn on overflow checks # FIXME(qix-): this causes a linker error on x64
[profile.release]
opt-level = 3 # Maximum optimizations
lto = "fat" # Perform LTO across all crates
codegen-units = 1 # Reduce number of codegen units to increase optimizations.
strip = true # Strip symbols from binary
incremental = false # Disable incremental building
panic = "abort" # Use "abort" panic strategy
debug = 0 # Do not generate debug information
# Speed up build programs
[profile.test.build-override]
opt-level = 0
codegen-units = 256
debug = false
[profile.test-release.build-override]
opt-level = 0
codegen-units = 256
[profile.dev.build-override]
opt-level = 0
codegen-units = 256
debug = false
[profile.release.build-override]
opt-level = 0
codegen-units = 256