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

Feature request: Provide convenience macros for the names #126

Open
stertingen opened this issue Mar 3, 2023 · 1 comment
Open

Feature request: Provide convenience macros for the names #126

stertingen opened this issue Mar 3, 2023 · 1 comment
Assignees

Comments

@stertingen
Copy link

I would like to propose providing the name of a detected component in a universal macro.

  • BOOST_LANG_NAME shall be defined as detected language name
  • BOOST_ARCH_NAME shall be defined as detected architecture name
    and so on for BOOST_COMP_NAME, BOOST_LIB_C_NAME, BOOST_LIB_STD_NAME, BOOST_LIB_OS_NAME, maybe for BOOST_PLAT_NAME.

The primary use case of this proposal is conveniently printing some build information to the user, allowing better bug reports.

I understand that some of those definitions are ambiguous, for example BOOST_ARCH_NAME could be defined to either BOOST_ARCH_X86_NAME or BOOST_ARCH_X86_64_NAME on x86-64.
In these cases, I would propose using either the 'leaf' names which are the most specific or the first ones detected.

@grafikrobot
Copy link
Member

I like the idea. I'll see what I can come up with.

@grafikrobot grafikrobot self-assigned this Apr 2, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants