Skip to content

Restore helpful error message when make is run before configure (#11347 revisited)#11352

Merged
dra27 merged 2 commits intoocaml:trunkfrom
shindere:restore-unconfigured-tree-error-message
Jun 24, 2022
Merged

Restore helpful error message when make is run before configure (#11347 revisited)#11352
dra27 merged 2 commits intoocaml:trunkfrom
shindere:restore-unconfigured-tree-error-message

Conversation

@shindere
Copy link
Copy Markdown
Contributor

As the title suggests, this is an alternative proposal to #11347.

The idea is to "hide" a dependency rule that prevents our error message
from being displayed if the tree has not been configured.

It feels a pity though that we have to use such tricks, but I couldn't
find a better way at the moment.

I like this better than #11347 because, to solve the problem, it
removes a dependency, rather than adding an (IMO) not-so-legitimate one.

shindere added 2 commits June 23, 2022 17:15
Let configure decide whether make should make world.opt or world,
depending on whether the native compiler has been enabled or not.
Make sure stdlib/StdlibModules depends on sak only if the tree
has been configured.

If the tree has not been configured this dependency is useless.
@shindere
Copy link
Copy Markdown
Contributor Author

As a bonus, this PR's first commit moves the computation of the default
build target (world or world.opt) from make to configure.

Copy link
Copy Markdown
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.

This is a better approach than mine, thanks!

@dra27 dra27 merged commit 0211c97 into ocaml:trunk Jun 24, 2022
@shindere shindere deleted the restore-unconfigured-tree-error-message branch June 27, 2022 06:24
@shindere
Copy link
Copy Markdown
Contributor Author

shindere commented Jun 27, 2022 via email

@shindere
Copy link
Copy Markdown
Contributor Author

shindere commented Jun 27, 2022 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants