aboutsummaryrefslogtreecommitdiffstats
path: root/erts/include
diff options
context:
space:
mode:
authorLukas Larsson <[email protected]>2013-08-08 10:25:46 +0200
committerLukas Larsson <[email protected]>2013-08-08 10:25:46 +0200
commit3fbbe6760a0476fccc2375dc8ca5791546dbc876 (patch)
tree5e7b93a5ac7b77232177fcfa75001cead382afb6 /erts/include
parent4ba61d6fd151172768c62f254ca46371014f2061 (diff)
parent0642847e85a0517c4063e23f21dcd18052e8d94c (diff)
downloadotp-3fbbe6760a0476fccc2375dc8ca5791546dbc876.tar.gz
otp-3fbbe6760a0476fccc2375dc8ca5791546dbc876.tar.bz2
otp-3fbbe6760a0476fccc2375dc8ca5791546dbc876.zip
Merge branch 'lukas/erts/ethr_smp_req_native_compiletime/OTP-11196' into maint
* lukas/erts/ethr_smp_req_native_compiletime/OTP-11196: Bailout if no native implementations are found
Diffstat (limited to 'erts/include')
-rw-r--r--erts/include/internal/ethread.h4
1 files changed, 4 insertions, 0 deletions
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__)