Skip to content

Strip prefixes in file names #10650

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged

Conversation

adambratschikaye
Copy link
Contributor

Allow codegen to remove certain prefixes from source file paths when printing the paths in generated files. This currently is only applied to the OUT_DIR and allows generated code to be deterministic.

This resolves #10639 and the issue with comments mentioned in #9553. It is a variation on the solution proposed in #9580 (instead of removing prefixes when printing names, they are removed in the constructor Files::from_paths).

Allow codegen to remove certain prefixes from source file paths when
printing the paths in generated files. This currently is only applied to
the `OUT_DIR` and allows generated code to be deterministic.
@adambratschikaye adambratschikaye requested a review from a team as a code owner April 23, 2025 07:03
@adambratschikaye adambratschikaye requested review from abrown and removed request for a team April 23, 2025 07:03
@github-actions github-actions bot added cranelift Issues related to the Cranelift code generator isle Related to the ISLE domain-specific language labels Apr 23, 2025
Copy link

Subscribe to Label Action

cc @cfallin, @fitzgen

This issue or pull request has been labeled: "cranelift", "isle"

Thus the following users have been cc'd because of the following labels:

  • cfallin: isle
  • fitzgen: isle

To subscribe or unsubscribe from this label, edit the .github/subscribe-to-label.json configuration file.

Learn more.

@alexcrichton alexcrichton added this pull request to the merge queue Apr 23, 2025
Merged via the queue into bytecodealliance:main with commit 0694bba Apr 23, 2025
41 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cranelift Issues related to the Cranelift code generator isle Related to the ISLE domain-specific language
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Non-deterministic builds from OUT_DIR paths in panic messages
2 participants