Pass -no-check-prims when js is the only listed linking mode#4213
Pass -no-check-prims when js is the only listed linking mode#4213nojb wants to merge 1 commit intoocaml:mainfrom
js is the only listed linking mode#4213Conversation
Signed-off-by: Nicolás Ojeda Bär <n.oje.bar@gmail.com>
ghost
left a comment
There was a problem hiding this comment.
LGTM.
I initially had in mind that the check would be "js is present but not byte". But in fact, if the user requests anything else that js then surely the C stubs have to be provided, so the more strict "modes ={js}" check seems better.
Just thinking about this again: why not make it part of the |
Thinking about your suggestion actually made me realize that there is a slight problem with how we handle the This means that Anyway, perhaps all this is better addressed in a different PR. |
That does seem like the most straightforward thing to do. It feels a bit sad to loose the sharing when everything lines up, but maybe we could try re-adding the sharing as an optimisation once we have a straightforward and working setup. |
|
This has bitrotted and needs to be looked afresh. |
|
@nojb, #5049 doesn't works as expected it seems. See #5282. Attempting to fix it in #5297 breaks my test. It is possible that the fix is correct and the test is wrong (simulating no shared library support with disable_dynamically_linked_foreign_archives=true). Would you be able to test the fix ( #5297 ) please ? |
Fixes #4027
When
jsis the only listed linking mode for some executables, then-no-check-primsis automatically passed as a linking flag (it is made part of:standard).