Skip to content

Commit 62944c9

Browse files
authored
Turn WebAssembly/Emscripten support into a dedicated architecture
1 parent 01270a9 commit 62944c9

1 file changed

Lines changed: 7 additions & 1 deletion

File tree

common.h

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -386,9 +386,11 @@ typedef int blasint;
386386
#endif
387387
#endif
388388

389-
#ifdef __EMSCRIPTEN__
389+
#if defined(ARCH_WASM)
390+
#ifndef YIELDING
390391
#define YIELDING
391392
#endif
393+
#endif
392394

393395
#if defined(_MSC_VER) && !defined(__clang__)
394396
#undef YIELDING // MSVC doesn't support assembly code
@@ -498,6 +500,10 @@ please https://github.com/xianyi/OpenBLAS/issues/246
498500
#include "common_csky.h"
499501
#endif
500502

503+
#ifdef ARCH_WASM
504+
#include "common_wasm.h"
505+
#endif
506+
501507
#ifndef ASSEMBLER
502508
#ifdef OS_WINDOWSSTORE
503509
typedef char env_var_t[MAX_PATH];

0 commit comments

Comments
 (0)