Skip to content
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

zig build system: organize build artifacts #328

Closed
2 of 4 tasks
andrewrk opened this issue Apr 18, 2017 · 1 comment
Closed
2 of 4 tasks

zig build system: organize build artifacts #328

andrewrk opened this issue Apr 18, 2017 · 1 comment
Labels
enhancement Solving this issue will likely involve adding new logic or components to the codebase.
Milestone

Comments

@andrewrk
Copy link
Member

andrewrk commented Apr 18, 2017

migrated from #204

  • have a "build" directory where all build artifacts go
  • ability to override default zig directory with --build-dir [name]
  • use a unique filename for linker script and delete it on success
  • for compiling C files, mirror source directory structure so that the object file paths can be the same
@andrewrk andrewrk added the enhancement Solving this issue will likely involve adding new logic or components to the codebase. label Apr 18, 2017
@andrewrk andrewrk added this to the 0.1.0 milestone Apr 18, 2017
@andrewrk
Copy link
Member Author

Currently, all intermediate artifacts go into the cache dir, and final artifacts go into the cwd.

I think how the rest of these are going to work, is that even the final build artifacts go into the cache dir. If you want build artifacts such as executables and libraries to go somewhere else, you can use the setOutputPath API, or you can run the install step.

Note that the cache dir is going to change structure with #330 and #298.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Solving this issue will likely involve adding new logic or components to the codebase.
Projects
None yet
Development

No branches or pull requests

1 participant