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

Can't compile with localization disabled #564

Closed
sa2thoms opened this issue Apr 18, 2024 · 1 comment
Closed

Can't compile with localization disabled #564

sa2thoms opened this issue Apr 18, 2024 · 1 comment

Comments

@sa2thoms
Copy link

My use-case for this library is an embedded application where we have localization disabled (by defining __LIBCPP_HAS_NO_LOCALIZATION). This causes problems when compiling with mp-units, as it tries to include the iostream library. Is there any way to build the library without these parts?

@mpusz
Copy link
Owner

mpusz commented Apr 18, 2024

Hi, thanks for your feedback!

We had such separations of compilation before we added support for C++ modules in the last version. However, with modules, it didn't scale, so we do not have separate I/O CMake targets anyway. We decided that we would add conditional compilation for a freestanding part when the need arises. And here it is... 😉

As of today, there is no separation, but I would like to add it. The only problem is that enforcing freestanding mode is non-standard and not even well defined in implementations (e.g., _LIBCPP_HAS_NO_LOCALIZATION is not equivalent to a freestanding mode).

@mpusz mpusz closed this as completed in cd36e6f May 30, 2024
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

No branches or pull requests

2 participants