Skip to content

Commit f65ef8d

Browse files
committed
Define swift_async_extendedFramePointerFlags for the watchOS simulator
1 parent 2512478 commit f65ef8d

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
@@ -38,8 +38,12 @@
3838
#include <Availability.h>
3939
#include <TargetConditionals.h>
4040
#if TARGET_OS_WATCH
41-
// Bitcode compilation for the watch precludes defining the following asm
42-
// symbols, so we don't use them.
41+
// Bitcode compilation for the watch device precludes defining the following asm
42+
// symbols, so we don't use them... but simulators are okay.
43+
#if TARGET_OS_SIMULATOR
44+
asm("\n .globl _swift_async_extendedFramePointerFlags" \
45+
"\n _swift_async_extendedFramePointerFlags = 0x0");
46+
#endif
4347
#else
4448
asm("\n .globl _swift_async_extendedFramePointerFlags" \
4549
"\n _swift_async_extendedFramePointerFlags = 0x0");

0 commit comments

Comments
 (0)