From 0642847e85a0517c4063e23f21dcd18052e8d94c Mon Sep 17 00:00:00 2001 From: Lukas Larsson Date: Mon, 29 Jul 2013 15:08:18 +0200 Subject: Bailout if no native implementations are found Some basic tests are already done in configure. This makes sure we cover all cases by bailing out when compiling as well. --- erts/include/internal/ethread.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'erts/include/internal/ethread.h') diff --git a/erts/include/internal/ethread.h b/erts/include/internal/ethread.h index 407097d4b1..38b8e9e9b6 100644 --- a/erts/include/internal/ethread.h +++ b/erts/include/internal/ethread.h @@ -361,6 +361,10 @@ extern ethr_runtime_t ethr_runtime__; # endif #endif /* !ETHR_DISABLE_NATIVE_IMPLS */ +#if !defined(ETHR_HAVE_NATIVE_ATOMIC32) && !defined(ETHR_HAVE_NATIVE_ATOMIC64) && !defined(ETHR_DISABLE_NATIVE_IMPLS) && defined(ETHR_SMP_REQUIRE_NATIVE_IMPLS) +#error "No native ethread implementation found. If you want to use fallbacks you have to disable native ethread support with configure." +#endif + #include "ethr_atomics.h" /* The atomics API */ #if defined(__GNUC__) -- cgit v1.2.3