boostorg / boostorg/predef

Feature request: Provide convenience macros for the names

Open
#126 1 comment 2 reactions 1 assignee Claimed by @grafikrobot View on GitHub
enhancement
Dominant language
C
Stars
56
Forks
87
PR merge metrics
No merged PRs in 30d

Description

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.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.