speed up build

This commit is contained in:
zack 2024-12-29 12:06:13 -05:00
parent 210d5078c6
commit ca14ad7d08
No known key found for this signature in database
GPG key ID: 5F873416BCF59F35

View file

@ -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" } spirv-std = { git = "https://github.com/Rust-GPU/rust-gpu.git" }
# Enable incremental by default in release mode. # # Enable incremental by default in release mode.
[profile.release] # [profile.release]
incremental = true # incremental = true
# HACK(eddyb) this is the default but without explicitly specifying it, Cargo # # HACK(eddyb) this is the default but without explicitly specifying it, Cargo
# will treat the identical settings in `[profile.release.build-override]` below # # will treat the identical settings in `[profile.release.build-override]` below
# as different sets of `rustc` flags and will not reuse artifacts between them. # # as different sets of `rustc` flags and will not reuse artifacts between them.
codegen-units = 256 # codegen-units = 256
#
# Compile build-dependencies in release mode with the same settings # # Compile build-dependencies in release mode with the same settings
# as regular dependencies (including the incremental enabled above). # # as regular dependencies (including the incremental enabled above).
[profile.release.build-override] # [profile.release.build-override]
opt-level = 3 # opt-level = 3
incremental = true # incremental = true
codegen-units = 256 # codegen-units = 256
# HACK(eddyb) reduce the number of linker exports and/or imports, by avoiding # 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` # 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`). # (moved to `.github/workflows/ci.yaml` as `RUSTFLAGS: -Zshare-generics=off`).
# #
# rustflags = ["-Zshare-generics=off"] # rustflags = ["-Zshare-generics=off"]
codegen-units = 1 # codegen-units = 1
opt-level = 3 opt-level = 3