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

Add a lazy bsb_global_backend and use it everywhere #4093

Merged
merged 1 commit into from
Feb 6, 2020

Conversation

bsansouci
Copy link
Contributor

This adds bsb_global_backend, useful for native compilation. This shouldn't change any behavior and should be fairly fast thanks to Lazy. This will allow us to have the JS artifacts stay in lib/bs and then have the native artifacts in lib/native and bytecode in lib/bytecode.

You should merge #4086 first.

@bsansouci bsansouci requested a review from bobzhang January 30, 2020 00:16

val backend : Bsb_config_types.compilation_kind_t Lazy.t

val lib_artifacts_dir : string Lazy.t
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

from what I can tell lib_artifacts_dir is used a lot.
Where is backend and cmdline_backend used?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh they are both used by the full native PR, but not in this one.

@bobzhang bobzhang merged commit 0c6af8b into rescript-lang:master Feb 6, 2020
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.

2 participants