speed up build
This commit is contained in:
parent
210d5078c6
commit
ca14ad7d08
1 changed files with 15 additions and 15 deletions
30
Cargo.toml
30
Cargo.toml
|
|
@ -20,20 +20,20 @@ spirv-builder = { git = "https://github.com/Rust-GPU/rust-gpu.git" }
|
|||
spirv-std = { git = "https://github.com/Rust-GPU/rust-gpu.git" }
|
||||
|
||||
|
||||
# Enable incremental by default in release mode.
|
||||
[profile.release]
|
||||
incremental = true
|
||||
# HACK(eddyb) this is the default but without explicitly specifying it, Cargo
|
||||
# will treat the identical settings in `[profile.release.build-override]` below
|
||||
# as different sets of `rustc` flags and will not reuse artifacts between them.
|
||||
codegen-units = 256
|
||||
|
||||
# Compile build-dependencies in release mode with the same settings
|
||||
# as regular dependencies (including the incremental enabled above).
|
||||
[profile.release.build-override]
|
||||
opt-level = 3
|
||||
incremental = true
|
||||
codegen-units = 256
|
||||
# # Enable incremental by default in release mode.
|
||||
# [profile.release]
|
||||
# incremental = true
|
||||
# # HACK(eddyb) this is the default but without explicitly specifying it, Cargo
|
||||
# # will treat the identical settings in `[profile.release.build-override]` below
|
||||
# # as different sets of `rustc` flags and will not reuse artifacts between them.
|
||||
# codegen-units = 256
|
||||
#
|
||||
# # Compile build-dependencies in release mode with the same settings
|
||||
# # as regular dependencies (including the incremental enabled above).
|
||||
# [profile.release.build-override]
|
||||
# opt-level = 3
|
||||
# incremental = true
|
||||
# codegen-units = 256
|
||||
|
||||
# HACK(eddyb) reduce the number of linker exports and/or imports, by avoiding
|
||||
# inter-CGU linkage, to stay under the 64Ki MSVC limit for `rustc_codegen_spirv`
|
||||
|
|
@ -45,5 +45,5 @@ codegen-units = 256
|
|||
# (moved to `.github/workflows/ci.yaml` as `RUSTFLAGS: -Zshare-generics=off`).
|
||||
#
|
||||
# rustflags = ["-Zshare-generics=off"]
|
||||
codegen-units = 1
|
||||
# codegen-units = 1
|
||||
opt-level = 3
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue