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

Documentation for searched-lib #431

Open
Flamefire opened this issue Dec 7, 2024 · 3 comments
Open

Documentation for searched-lib #431

Flamefire opened this issue Dec 7, 2024 · 3 comments
Labels
bug Something isn't working

Comments

@Flamefire
Copy link
Contributor

Brief problem description

I wasn't able to find documentation for searched-lib which is used in Boost Jamfiles.
This seems to be a long standing issue, see e.g. https://lists.boost.org/boost-build/2007/03/16287.php

What exactly is this searched-lib and how exactly is it supposed to be used?

Can this be added to the documentation please?

@Flamefire Flamefire added the bug Something isn't working label Dec 7, 2024
@grisumbras
Copy link
Contributor

grisumbras commented Dec 19, 2024

SEARCHED_LIB is a subtype of LIB that is mostly used internally (as far as I can see). searched-lib foo ; is equivalent to lib foo : : <name>foo ;. I feel like it would be better to actually replace all uses of searched-lib with lib than to publicize searched-lib.

@Flamefire
Copy link
Contributor Author

Is lib foo : : <name>foo ; the same as lib foo ; or is there a difference?

I was asking for searched-lib as its use was recently introduced by @grafikrobot :
boostorg/locale@9277c65#diff-322788b77c72dedcc9b4a12bf0233ceb8451b4a6baa6d851173ecd5320ac14aeL135

So I have the impression it has some advantage. Is that the case or shall users/Boost libs rather use the plain lib?

@grisumbras
Copy link
Contributor

Is lib foo : : foo ; the same as lib foo ; or is there a difference?

Actually, yes, it is. I missed that, because it is handled in a different place. So, lib foo ; is equivalent to lib foo : : <name>foo ;, which is equivalent to searched-lib foo : : <name>foo ;, which is equivalent to searched-lib foo ;.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants