Skip to content

Commit d7f6876

Browse files
committed
Revert "[WebAssembly] Temporarily work around lack of __attribute__((constructor))"
This reverts commit 8ef9f7f.
1 parent 904d0cf commit d7f6876

File tree

1 file changed

+1
-10
lines changed

1 file changed

+1
-10
lines changed

stdlib/public/runtime/ProtocolConformance.cpp

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1392,17 +1392,8 @@ static bool swift_isInConformanceExecutionContextImpl(
13921392
return true;
13931393

13941394
if (context->globalActorIsolationType) {
1395-
if (!_swift_task_isCurrentGlobalActorHook) {
1396-
#if defined(__wasm__)
1397-
// FIXME: We don't currently support a concurrency model for WebAssembly,
1398-
// and the global actor hook isn't getting initialized due to the
1399-
// lack of __attribute__((constructor)) support. Therefore, we
1400-
// treat everything "as if" it were on the correct global actor.
1401-
return true;
1402-
#else
1395+
if (!_swift_task_isCurrentGlobalActorHook)
14031396
return false;
1404-
#endif
1405-
}
14061397

14071398
// Check whether we are running on this global actor.
14081399
if (!_swift_task_isCurrentGlobalActorHook(

0 commit comments

Comments
 (0)