Skip to content

Commit

Permalink
fast compile
Browse files Browse the repository at this point in the history
  • Loading branch information
GrandmasterB42 committed Sep 18, 2024
1 parent 94d55f0 commit d4afec3
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 0 deletions.
17 changes: 17 additions & 0 deletions .cargo/config.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
[target.x86_64-unknown-linux-gnu]
linker = "clang"
rustflags = [
"-C",
"link-arg=-fuse-ld=lld",
# Nightly only
"-Zshare-generics=y",
"-Zthreads=0",
]

[target.x86_64-pc-windows-msvc]
linker = "rust-lld.exe"
rustflags = [
# Nightly only
"-Zshare-generics=y",
"-Zthreads=0",
]
8 changes: 8 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@ edition = "2021"

[dependencies]
bevy = "0.14"
log = { version = "*", features = [
"max_level_debug",
"release_max_level_warn",
] }
bevy-inspector-egui = "0.25"
bevy_flycam = "0.14"
bevy_mod_picking = { version = "0.20", default-features = false, features = [
Expand All @@ -18,3 +22,7 @@ opt-level = 1

[profile.dev.package."*"]
opt-level = 3

[profile.release]
codegen-units = 1
lto = "thin"
2 changes: 2 additions & 0 deletions rust-toolchain.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
[toolchain]
channel = "nightly"

0 comments on commit d4afec3

Please sign in to comment.