File tree 1 file changed +2
-2
lines changed
1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -26,12 +26,12 @@ typedef pthread_cond_t ConditionHandle;
26
26
typedef pthread_mutex_t MutexHandle;
27
27
typedef pthread_rwlock_t ReadWriteLockHandle;
28
28
29
- #if defined(__CYGWIN__) || defined(__ANDROID__) || defined(__HAIKU__)
29
+ #if defined(__CYGWIN__) || defined(__ANDROID__) || defined(__HAIKU__) || defined(__wasi__)
30
30
// At the moment CYGWIN pthreads implementation doesn't support the use of
31
31
// constexpr for static allocation versions. The way they define things
32
32
// results in a reinterpret_cast which violates constexpr. Similarly, Android's
33
33
// pthread implementation makes use of volatile attributes that prevent it from
34
- // being marked as constexpr.
34
+ // being marked as constexpr. WASI currently doesn't support threading/locking at all.
35
35
#define SWIFT_CONDITION_SUPPORTS_CONSTEXPR 0
36
36
#define SWIFT_MUTEX_SUPPORTS_CONSTEXPR 0
37
37
#define SWIFT_READWRITELOCK_SUPPORTS_CONSTEXPR 0
You can’t perform that action at this time.
0 commit comments