Skip to content

Add WorkingDirectory option for stable paths - #120

Open
am11 wants to merge 1 commit into
kaby76:masterfrom
am11:feature/relative-paths
Open

Add WorkingDirectory option for stable paths#120
am11 wants to merge 1 commit into
kaby76:masterfrom
am11:feature/relative-paths

Conversation

@am11

@am11 am11 commented Feb 24, 2026

Copy link
Copy Markdown

Setting WorkingDirectory on the <Antlr4> item causes grammar file paths to be passed as relative to the tool process, producing stable "Generated from" comments that don't change per machine.

-// Generated from /Users/adeel/projects/runtime5/src/tools/ilasm/src/ILAssembler/gen/CIL.g4 by ANTLR 4.13.1
+// Generated from CIL.g4 by ANTLR 4.13.1

This avoids noisy diffs when regenerating on different machines or checkout paths.

Ref dotnet/runtime#124764 (comment)

@am11

am11 commented Feb 24, 2026

Copy link
Copy Markdown
Author

cc @akoeplinger

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