Skip to content

Conversation

@keiichiw
Copy link
Contributor

The can_compile utility writes its temporary output file to the system's global temporary directory. This can clutter the host system with build artifacts.

By using Cargo's OUT_DIR, the temporary file is written to a directory specific to the build, ensuring that build artifacts are contained within the project's build output and do not mess up the host system.

Follow-up to #1497.

The `can_compile` utility writes its temporary output file to the
system's global temporary directory. This can clutter the host system
with build artifacts.

By using Cargo's `OUT_DIR`, the temporary file is written to a
directory specific to the build, ensuring that build artifacts are
contained within the project's build output and do not mess up the
host system.

Follow-up to bytecodealliance#1497.
@sunfishcode sunfishcode merged commit 85f3888 into bytecodealliance:main Nov 9, 2025
6 of 50 checks passed
@sunfishcode
Copy link
Member

Thanks!

@sunfishcode
Copy link
Member

This is now released in rustix 1.1.3.

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