Skip to content

feat(cli): make build-location global and clarify artifact paths#1697

Open
ghaith wants to merge 1 commit intomasterfrom
PRG-3884
Open

feat(cli): make build-location global and clarify artifact paths#1697
ghaith wants to merge 1 commit intomasterfrom
PRG-3884

Conversation

@ghaith
Copy link
Copy Markdown
Collaborator

@ghaith ghaith commented Apr 23, 2026

Expose --build-location as a global option so non-build commands can control where intermediate artifacts are written. Keep --lib-location scoped to the build subcommand and preserve its fallback behavior.

Update CLI parsing/tests to reflect the new flag scope and add an integration test proving non-build compilation writes intermediates under --build-location.

Refresh book documentation to explain:

  • --build-location is global
  • --lib-location remains build-only
  • non-build commands may use OS temp directories for intermediates when --build-location is not provided
  • multi-file builds generate intermediate objects first and then pass them to the linker for final artifact generation

Expose --build-location as a global option so non-build commands can control where intermediate artifacts are written.
Keep --lib-location scoped to the build subcommand and preserve its fallback behavior.

Update CLI parsing/tests to reflect the new flag scope and add an integration test proving non-build compilation writes intermediates under --build-location.

Refresh book documentation to explain:
- --build-location is global
- --lib-location remains build-only
- non-build commands may use OS temp directories for intermediates when --build-location is not provided
- multi-file builds generate intermediate objects first and then pass them to the linker for final artifact generation
@github-actions
Copy link
Copy Markdown

github-actions Bot commented Apr 23, 2026

Build Artifacts

🐧 Linux

Artifact Link Size
deb-x86_64 Download 38.4 MB
schema Download 0.0 MB
stdlib Download 32.4 MB
plc-x86_64 Download 43.6 MB
deb-aarch64 Download 30.9 MB
plc-aarch64 Download 43.5 MB

From workflow run

🪟 Windows

Artifact Link Size
stdlib.lib Download 4.3 MB
stdlib.dll Download 0.1 MB
plc.exe Download 38.4 MB

From workflow run

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