-
Notifications
You must be signed in to change notification settings - Fork 455
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
emcc
/em++
are detected as ToolFamily::Msvc
#1185
Comments
Thanks. Does it define any macro that we could use to identify it? We have a c source file for it, if there's a macro then we could use it. https://github.com/rust-lang/cc-rs/blob/main/src/detect_compiler_family.c |
Yes, it is I modified #ifdef __clang__
#pragma message "clang"
#endif
#ifdef __GNUC__
#pragma message "gcc"
#endif
+ #ifdef __EMSCRIPTEN__
+ #pragma message "emscripten"
+ #endif And the
Hope this helps. |
introduced by: #1015
https://github.com/rust-lang/cc-rs/blob/main/src/tool.rs#L173-L174
For Msvc family, it will add
-nologo
as default flags., but emcc or em++ does not accept this.The text was updated successfully, but these errors were encountered: