Skip to content

Conversation

@shindere
Copy link
Contributor

This fixes issue #12921 by re-introducing the use of the BEST_OCAMLOPT
mechanism which had been forgotten during the merge of the corresponding
makefiles into the root one (second commit of this pull request).

The first commit fixes the dependencies of ocamldoc.opt and ocamltest.opt:
these two native programs were depending on ocamlc.opt, which is obviously
incorrect. This error seems to have been there from the beginning, see
commit 8486ca3 where there is likely a copy paste error between the
targets for ocamldoc and ocamldoc.opt, many thanks to @dra27 for
having done the investigation.

These targets were depending on the bytecode compiler, which is
obviously not correct.
@shindere shindere changed the title use the best native compiler available to build ocaml{doc,test}.opt Use the best native compiler available to build ocaml{doc,test}.opt Mar 22, 2024
Copy link
Member

@gasche gasche left a comment

Choose a reason for hiding this comment

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

Thanks! I believe that this works as intended.

Copy link
Member

@dra27 dra27 left a comment

Choose a reason for hiding this comment

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

LGTM (and needs to go on 5.2)

@gasche gasche merged commit fcad286 into ocaml:trunk Mar 22, 2024
@dra27
Copy link
Member

dra27 commented Mar 22, 2024

Review-snap!

gasche added a commit that referenced this pull request Mar 22, 2024
Use the best native compiler available to build ocaml{doc,test}.opt

(cherry picked from commit fcad286)
@shindere shindere deleted the fix-native-tools-build branch March 25, 2024 15:51
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.

3 participants