Skip to content

Fix CI when codegen .so is clobbered#275

Merged
LegNeato merged 1 commit intoRust-GPU:mainfrom
LegNeato:citruncate
Sep 20, 2025
Merged

Fix CI when codegen .so is clobbered#275
LegNeato merged 1 commit intoRust-GPU:mainfrom
LegNeato:citruncate

Conversation

@LegNeato
Copy link
Copy Markdown
Contributor

@LegNeato LegNeato commented Sep 19, 2025

The workspace builds rustc_codegen_nvvm as a normal Cargo member. During every CUDA build script, cuda_builder re-builds that same crate through -Zcodegen-backend=. Cargo produces two identical librustc_codegen_nvvm.so.

Add a feature to differentiate the two cases, cribbing from rust-gpu as it has the same structure but no overlapping .so issue

@LegNeato LegNeato force-pushed the citruncate branch 2 times, most recently from 644e8e4 to 698a317 Compare September 20, 2025 00:12
The workspace builds rustc_codegen_nvvm as a normal Cargo member. During every CUDA build script, cuda_builder re-builds that same crate through -Zcodegen-backend=. Cargo produces two identical librustc_codegen_nvvm.so.

Add a feature to differentiate the two cases, cribbing from rust-gpu as it has the same structure but no overlapping .so issue
@LegNeato
Copy link
Copy Markdown
Contributor Author

Because this is intermittent, I am just going to merge and watch main.

@LegNeato LegNeato merged commit 2bf3138 into Rust-GPU:main Sep 20, 2025
12 checks passed
@LegNeato LegNeato deleted the citruncate branch September 20, 2025 00:31
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.

1 participant