cmake detection of upstream or fastcomp backend

15 views
Skip to first unread message

caiiiycuk

unread,
Oct 30, 2019, 11:15:12 AM10/30/19
to emscripten-discuss
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

Alon Zakai

unread,
Oct 30, 2019, 1:49:18 PM10/30/19
to emscripte...@googlegroups.com
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 <caii...@gmail.com> 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 emscripten-disc...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/emscripten-discuss/3bf6ace6-4573-43e8-ac89-e6971c78b44c%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages