Skip to content

Comments

spirv-tools-sys: always build with -O2#24

Merged
LegNeato merged 1 commit intoRust-GPU:mainfrom
fee1-dead-contrib:opt-level
Feb 2, 2026
Merged

spirv-tools-sys: always build with -O2#24
LegNeato merged 1 commit intoRust-GPU:mainfrom
fee1-dead-contrib:opt-level

Conversation

@fee1-dead
Copy link
Contributor

Per https://doc.rust-lang.org/cargo/reference/profiles.html#build-dependencies, build dependencies are always built with no optimizations, this leads to cc picking up an OPT_LEVEL=0 if one just depends on spirv_builder. We almost always want to build spirv-tools in release mode, so explicitly set it in the build script.

@LegNeato
Copy link
Contributor

LegNeato commented Feb 2, 2026

CI failure looks unrelated. Thanks!

@LegNeato LegNeato merged commit f67d84a into Rust-GPU:main Feb 2, 2026
5 of 6 checks passed
@fee1-dead fee1-dead deleted the opt-level branch February 2, 2026 23:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants