Skip to content

Commit b3ec0ff

Browse files
committed
[stdlib] fix android build
ptrauth isn't available when stdlib is built with NDK's clang
1 parent 36288e1 commit b3ec0ff

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

stdlib/public/Concurrency/Actor.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,9 @@
1818
#include "swift/Runtime/Concurrency.h"
1919
#include <atomic>
2020
#include <new>
21+
#if __has_feature(ptrauth_calls)
2122
#include <ptrauth.h>
23+
#endif
2224

2325
#include "../CompatibilityOverride/CompatibilityOverride.h"
2426
#include "swift/ABI/Actor.h"

0 commit comments

Comments
 (0)