From 9773a9d6b3da46a8c499d0dcc22030641006fa7b Mon Sep 17 00:00:00 2001 From: Martin Kroeker Date: Wed, 14 Sep 2022 17:04:11 +0200 Subject: [PATCH 1/2] undefine YIELDING for the Emscripten js converter --- common.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/common.h b/common.h index e6002d322..4eeeb8d55 100644 --- a/common.h +++ b/common.h @@ -387,6 +387,10 @@ typedef int blasint; #endif */ +#ifdef __EMSCRIPTEN__ +#define YIELDING +#endif + #ifndef YIELDING #define YIELDING sched_yield() #endif From b285307e184f8ff2a3e430442756c735a0243671 Mon Sep 17 00:00:00 2001 From: Martin Kroeker Date: Wed, 14 Sep 2022 17:05:24 +0200 Subject: [PATCH 2/2] Add a kludge for the Emscripten js converter --- ctest.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/ctest.c b/ctest.c index df628b1d4..2ccae8dcc 100644 --- a/ctest.c +++ b/ctest.c @@ -173,3 +173,8 @@ HAVE_C11 ARCH_E2K #endif +#if defined(__EMSCRIPTEN__) +ARCH_RISCV64 +OS_WINDOWS +#endif +