From ca14ad7d08a96e61194747ae438eec17dd31516b Mon Sep 17 00:00:00 2001 From: zack Date: Sun, 29 Dec 2024 12:06:13 -0500 Subject: [PATCH] speed up build --- Cargo.toml | 30 +++++++++++++++--------------- 1 file changed, 15 insertions(+), 15 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 79ea904..bd6a824 100644 --- a/Cargo.toml +++ b/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