Skip to content

Add -build-artifacts-dir for configurable out-of-source artifacts #2514

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

Closed
wants to merge 1 commit into from

Conversation

bsansouci
Copy link
Contributor

See #2418 for details.

This works by creating a dir of the name given and then doing the same
thing as it used to do: given_dir/lib/bs and given_dir/lib/ocaml
etc...

The bs-dependencies' artifacts are in given_dir/node_modules/dep_name/lib

This does not seem to significantly increase build times, but it'd be
nice to make sure it doesn't.

cc @chenglou @Schmavery

This works by creating a dir of the name given and then doing the same
thing as it used to do: `given_dir/lib/bs` and `given_dir/lib/ocaml`
etc...

The bs-dependencies' artifacts are in `dir/node_modules/dep_name/lib`

This does not seem to significantly increase build times, but it'd be
nice to make sure it doesn't.

cc @chenglou @Schmavery
@bsansouci
Copy link
Contributor Author

Little addition: this supports building a project out of source when used like -build-artifacts-dir . (you'd end up with the same folder structure as today but with the additional of lib/node_modules)

@bsansouci
Copy link
Contributor Author

Friendly ping :)

@chenglou
Copy link
Member

Ah, Jordan said he had his own solution also. @jordwalke can you paste your patch too?

@rrdelaney
Copy link

Any chance of this getting merged?

ulrikstrid added a commit to reuniverse/rocket that referenced this pull request Jul 13, 2019
The code is mostly taken from rescript-lang/pull/2514

Co-authored-by:  Benjamin San Souci <[email protected]>"
ulrikstrid added a commit to reuniverse/rocket that referenced this pull request Jul 15, 2019
The code is mostly taken from rescript-lang/pull/2514

Co-authored-by:  Benjamin San Souci <[email protected]>"
@cristianoc
Copy link
Collaborator

closing very old PRs

@cristianoc cristianoc closed this Jun 25, 2022
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.

4 participants