Skip to content

build: Use OUT_DIR for test compilation output#1526

Merged
sunfishcode merged 1 commit into
bytecodealliance:mainfrom
keiichiw:use-outdir
Nov 9, 2025
Merged

build: Use OUT_DIR for test compilation output#1526
sunfishcode merged 1 commit into
bytecodealliance:mainfrom
keiichiw:use-outdir

Conversation

@keiichiw
Copy link
Copy Markdown
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
Copy Markdown
Member

Thanks!

@sunfishcode
Copy link
Copy Markdown
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