Skip to content

Commit d68fbe4

Browse files
committed
Wasm: add isOSWASI check for concurrency imports
1 parent 6c50414 commit d68fbe4

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

lib/Frontend/Frontend.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -764,6 +764,8 @@ static bool shouldImportConcurrencyByDefault(const llvm::Triple &target) {
764764
if (target.isOSLinux())
765765
return true;
766766
#if SWIFT_IMPLICIT_CONCURRENCY_IMPORT
767+
if (target.isOSWASI())
768+
return true;
767769
if (target.isOSOpenBSD())
768770
return true;
769771
#endif

0 commit comments

Comments
 (0)