-
Notifications
You must be signed in to change notification settings - Fork 67
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
Boost.Predef should provide a way to detect WASM #131
Comments
Also it's already detected in some way by boost.config: https://www.boost.org/doc/libs/1_82_0/boost/config/detail/select_platform_config.hpp |
This would require adding targets for boost.config doesn't seem to do anything specific with WASM, it just treats it as POSIX environment. I wonder if there are any C/C++ compilers capable of targeting WASM other than Clang and its derivatives? |
Also what kind of PLAT and OS should be assigned for this? boost.config just ignores this and does not assign anything specific. I've seen some projects simply referring to this as "HTML5" (or "WEB") and it could be probably fine as PLAT but Emscripten seems to be referring to itself as a platform which complicates everything a bit. This check is fine to skip as boost.predef allows for this but I wonder what user of WASM/Emscripten would expect? When running emcc with predef it already detects OS as unix but I'm not sure if this is correct. [comparison: emcc -dumpmachine]
[comparison: emcc AVAILABLE macros]
|
Relevant macros gathered from
echo | em++ -dM -E -x c++ -
:The text was updated successfully, but these errors were encountered: