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

fix byte_for_jsoo, fix #5282 #5297

Merged
merged 2 commits into from
Jan 13, 2022
Merged

fix byte_for_jsoo, fix #5282 #5297

merged 2 commits into from
Jan 13, 2022

Conversation

hhugo
Copy link
Collaborator

@hhugo hhugo commented Dec 18, 2021

No description provided.

@hhugo
Copy link
Collaborator Author

hhugo commented Dec 18, 2021

@emillon, can you check this fixes your issue.

@hhugo
Copy link
Collaborator Author

hhugo commented Dec 20, 2021

cc @nojb

@nojb
Copy link
Collaborator

nojb commented Dec 20, 2021

@hhugo thanks for the ping, I will try to try this out today or tomorrow.

@emillon
Copy link
Collaborator

emillon commented Dec 20, 2021

@emillon, can you check this fixes your issue.

Yes, that works! thanks!

@hhugo
Copy link
Collaborator Author

hhugo commented Dec 20, 2021

Does anyone know the expected use-case for
(context (default (disable_dynamically_linked_foreign_archives true))) ? Is it expected that libraries compiled with this mode still mention a dynamic library in the cma archive ?

@nojb
Copy link
Collaborator

nojb commented Dec 21, 2021

Does anyone know the expected use-case for (context (default (disable_dynamically_linked_foreign_archives true))) ?

No idea. For sure @jeremiedimino knows, but he is on holidays until 2022.

@emillon, can you check this fixes your issue.

Yes, that works! thanks!

Following this confirmation, is there anything left to check for this PR @hhugo?

@hhugo
Copy link
Collaborator Author

hhugo commented Dec 21, 2021

I think this PR should be merged because it fixes a regression.
But the test also shows that js compilation is broken when disable_dynamically_linked_foreign_archives=true (which #5049 was trying to fix/implement). I'd be nice to know whether js compilation is broken on platform without dynamic library support.

@ghost
Copy link

ghost commented Jan 6, 2022

Does anyone know the expected use-case for
(context (default (disable_dynamically_linked_foreign_archives true))) ? Is it expected that libraries compiled with this mode still mention a dynamic library in the cma archive ?

The original PR to add this flag doesn't state a reason (#2864), however the timing seems to correspond with the time we were trying to use the upstream Dune rules to build Jane Street codebase. So it's well possible we added this simply because we needed it to build Jane Street code base.

@hhugo hhugo added this to the 3.0.0 milestone Jan 7, 2022
@snowleopard snowleopard requested a review from rgrinberg January 12, 2022 16:29
hhugo added 2 commits January 12, 2022 17:47
Signed-off-by: Hugo Heuzard <hugo.heuzard@gmail.com>
Signed-off-by: Hugo Heuzard <hugo.heuzard@gmail.com>
@hhugo
Copy link
Collaborator Author

hhugo commented Jan 12, 2022

I've rebased the branch and signed the commit, it should be ready to be merged.

@rgrinberg rgrinberg merged commit ead656b into ocaml:main Jan 13, 2022
@hhugo hhugo deleted the fix-5282 branch October 9, 2023 09:36
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