Skip to content

Commit

Permalink
Better detection of available features on RISCV (#289)
Browse files Browse the repository at this point in the history
  • Loading branch information
zherczeg authored Jan 13, 2025
1 parent 2cdf4ed commit a969602
Show file tree
Hide file tree
Showing 3 changed files with 269 additions and 174 deletions.
4 changes: 2 additions & 2 deletions sljit_src/sljitLir.c
Original file line number Diff line number Diff line change
Expand Up @@ -452,12 +452,12 @@
/* Public functions */
/* --------------------------------------------------------------------- */

#if (defined SLJIT_CONFIG_X86 && SLJIT_CONFIG_X86)
#if (defined SLJIT_CONFIG_X86 && SLJIT_CONFIG_X86) || (defined SLJIT_CONFIG_RISCV && SLJIT_CONFIG_RISCV)
#define SLJIT_NEEDS_COMPILER_INIT 1
static sljit_s32 compiler_initialized = 0;
/* A thread safe initialization. */
static void init_compiler(void);
#endif /* SLJIT_CONFIG_X86 */
#endif /* SLJIT_CONFIG_X86 || SLJIT_CONFIG_RISCV */

SLJIT_API_FUNC_ATTRIBUTE struct sljit_compiler* sljit_create_compiler(void *allocator_data)
{
Expand Down
Loading

0 comments on commit a969602

Please sign in to comment.