Skip to content

Commit 68bc510

Browse files
[wasm][stdlib] Don't include <thread> with swift-threading-package=none
We can't assume libcxx to be built with `LIBCXX_ENABLE_THREADS=YES` with none threading package.
1 parent 06984b4 commit 68bc510

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

stdlib/public/stubs/Stubs.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,9 @@
5858
#endif // SWIFT_STDLIB_HAS_LOCALE
5959

6060
#include <limits>
61+
#ifndef SWIFT_THREADING_NONE
6162
#include <thread>
63+
#endif
6264

6365
#if defined(__ANDROID__)
6466
#include <android/api-level.h>

0 commit comments

Comments
 (0)