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

Boost.Predef should provide a way to detect WASM #131

Open
jcelerier opened this issue Aug 10, 2023 · 1 comment
Open

Boost.Predef should provide a way to detect WASM #131

jcelerier opened this issue Aug 10, 2023 · 1 comment

Comments

@jcelerier
Copy link

jcelerier commented Aug 10, 2023

Relevant macros gathered from echo | em++ -dM -E -x c++ -:

#define EMSCRIPTEN 1
#define __EMSCRIPTEN__ 1
#define __wasm 1
#define __wasm32 1
#define __wasm32__ 1
#define __wasm__ 1
@jcelerier
Copy link
Author

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

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

1 participant