Skip to content

Commit 26b7cbc

Browse files
committed
Define swift_async_extendedFramePointerFlags for the watchOS simulator
1 parent f0cd714 commit 26b7cbc

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

stdlib/public/Concurrency/Task.cpp

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,12 @@
3939
#include <Availability.h>
4040
#include <TargetConditionals.h>
4141
#if TARGET_OS_WATCH
42-
// Bitcode compilation for the watch precludes defining the following asm
43-
// symbols, so we don't use them.
42+
// Bitcode compilation for the watch device precludes defining the following asm
43+
// symbols, so we don't use them... but simulators are okay.
44+
#if TARGET_OS_SIMULATOR
45+
asm("\n .globl _swift_async_extendedFramePointerFlags" \
46+
"\n _swift_async_extendedFramePointerFlags = 0x0");
47+
#endif
4448
#else
4549
asm("\n .globl _swift_async_extendedFramePointerFlags" \
4650
"\n _swift_async_extendedFramePointerFlags = 0x0");

0 commit comments

Comments
 (0)