Skip to content

Conversation

@shindere
Copy link
Contributor

This continues the work started earlier.

At the moment, just a draft.

@dra27 dra27 marked this pull request as draft June 22, 2023 16:45
@shindere shindere force-pushed the merge-ocamltest-makefile branch from f161e45 to ac94792 Compare June 22, 2023 17:12
@shindere shindere force-pushed the merge-ocamltest-makefile branch 2 times, most recently from 1cadb8e to ebbd363 Compare July 21, 2023 19:28
@shindere shindere marked this pull request as ready for review July 21, 2023 19:35
@shindere shindere force-pushed the merge-ocamltest-makefile branch 5 times, most recently from 54f6642 to 112b261 Compare July 22, 2023 07:33
@shindere shindere force-pushed the merge-ocamltest-makefile branch from 112b261 to 870ecd5 Compare August 21, 2023 09:59
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.

Looking good! There's a few things which may be worth double-checking as we move this Makefile in (the -opaque bits and so forth) and this is possibly "blocked" on a decision for #12467 (which I'm just looking at next).

@shindere shindere force-pushed the merge-ocamltest-makefile branch 9 times, most recently from 8fdaaeb to 8e445bc Compare August 23, 2023 13:39
@shindere
Copy link
Contributor Author

shindere commented Aug 23, 2023 via email

@shindere shindere force-pushed the merge-ocamltest-makefile branch 2 times, most recently from 8b4ea1b to 08e4ca5 Compare August 24, 2023 10:01
The file is generated only if ocamltest is enabled.

Also, since it is generated at configure time it is removed during
distclean rather than during clean as before.

The computation of dependencies remains untouched by this commit and is
still working.
This commit adds the following flags when building ocamltest:
-absname -bin-annot -principal.

It also disables warning 40 (name-out-of-scope).

This is so that ocamltest is built like the other programs in the
distribution.
This is to bring the computation of dependencies closer to what the root
Makefile will do. Sadly, we use wildcards rather than precise lists of
files because it is what is going to happen in the root Makefile, at
least (hopefully only) for the time being.

This adds the dependencies of the two implementations of the
ocamltest_unix module which are not necessary but don't hurt either.

Apart from that, although this commit modifies the order in which
the files are passed to ocamldep, the generated .depend remains untouched
because ocamldep prints the dependencies in sorted order.

In other words, the order in which files are passed to ocamldep
does not affect the order in which dependencies are printed.
@shindere shindere force-pushed the merge-ocamltest-makefile branch 3 times, most recently from 25ffa18 to 8cb90d6 Compare August 24, 2023 14:38
@shindere shindere force-pushed the merge-ocamltest-makefile branch 3 times, most recently from ba4adbd to 9b132b4 Compare August 24, 2023 21:35
@shindere shindere force-pushed the merge-ocamltest-makefile branch from 9b132b4 to c8441fb Compare August 24, 2023 21:55
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.

Ready to merge when precheck#862 concludes!

@shindere
Copy link
Contributor Author

shindere commented Aug 25, 2023 via email

@dra27 dra27 merged commit 814c063 into ocaml:trunk Aug 25, 2023
@shindere
Copy link
Contributor Author

shindere commented Aug 25, 2023 via email

@shindere shindere deleted the merge-ocamltest-makefile branch August 25, 2023 12:42
@shindere shindere restored the merge-ocamltest-makefile branch August 25, 2023 12:45
@shindere shindere deleted the merge-ocamltest-makefile branch August 25, 2023 12:45
shindere added a commit to shindere/ocaml that referenced this pull request Sep 29, 2023
This is captured by the generic framework and does thus not need
to be written here.

(Follow-up to PR ocaml#12321 merging ocamltest/Makefile into the root Makefile)
shindere added a commit to shindere/ocaml that referenced this pull request Oct 19, 2023
This is captured by the generic framework and does thus not need
to be written here.

(Follow-up to PR ocaml#12321 merging ocamltest/Makefile into the root Makefile)
shindere added a commit to shindere/ocaml that referenced this pull request Oct 19, 2023
This is captured by the generic framework and does thus not need
to be written here.

(Follow-up to PR ocaml#12321 merging ocamltest/Makefile into the root Makefile)
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