In C you can check #ifdef __wasm__
as __wasm__ is defined only in the upstream backend. Perhaps CMake has a a way to check C defines? On Wed, Oct 30, 2019 at 8:15 AM caiiiycuk <[email protected]> wrote: > Hi. Is it possible to detect if cmake is runned for fastcomp or upstream > backend, need it for switch between asyncify and emterpreter. I checked > CMAKE_C_COMPILER_VERSION and EMSCRIPEN_VERSION both does not contain such > information. Thanks > > -- > You received this message because you are subscribed to the Google Groups > "emscripten-discuss" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To view this discussion on the web visit > https://groups.google.com/d/msgid/emscripten-discuss/3bf6ace6-4573-43e8-ac89-e6971c78b44c%40googlegroups.com > <https://groups.google.com/d/msgid/emscripten-discuss/3bf6ace6-4573-43e8-ac89-e6971c78b44c%40googlegroups.com?utm_medium=email&utm_source=footer> > . > -- You received this message because you are subscribed to the Google Groups "emscripten-discuss" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/emscripten-discuss/CAEX4NpQ4cTQtOjtPY7sot%2BNbBaiqfxopX0fr5pbsJsGikkUUgg%40mail.gmail.com.
