Files

35 lines
787 B
C

/**
* @file include/ActivMiddleware/Config/Compilers/Emcc.h
*
* @brief Emscripten configuration file.
*/
#if (!defined ACTIV_CONFIG_COMPILERS_EMCC_H)
#define ACTIV_CONFIG_COMPILERS_EMCC_H
#if (!defined ACTIV_COMPILER_NAME)
#if (defined __VERSION__)
#define ACTIV_COMPILER_NAME "emcc " ACTIV_STRINGIZE(__EMSCRIPTEN_major__) "." ACTIV_STRINGIZE(__EMSCRIPTEN_minor__) \
" (" __VERSION__ ")"
#else
#define ACTIV_COMPILER_NAME "emcc " ACTIV_STRINGIZE(__EMSCRIPTEN_major__) "." ACTIV_STRINGIZE(__EMSCRIPTEN_minor__)
#endif
#endif
#if (defined __clang__)
// clang-like.
#define ACTIV_COMLILER_CLANG ACTIV_COMPILER_CLANG_TAG
#define ACTIV_EXPLICIT_INSTANTIATE_SIZE_T
#include "Clang.h"
#else
#error Configure emcc support
#endif
#endif // (!defined ACTIV_CONFIG_COMPILERS_EMCC_H)