Skip to content

Commit bb3833b

Browse files
Adjust to the new clang builtin modules
clang is adding builtin modules for its C standard library headers. This means that stddef.h no longer gets included in the Backtracing module via Libc.h, and the clang builtin module needs to be used instead.
1 parent 0db93e2 commit bb3833b

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

stdlib/public/Backtracing/MemoryReader.swift

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@
1717

1818
import Swift
1919

20+
@_implementationOnly import _Builtin_stddef
21+
2022
@_implementationOnly import OS.Libc
2123
#if os(macOS)
2224
@_implementationOnly import OS.Darwin

stdlib/public/Backtracing/SymbolicatedBacktrace.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ import Swift
2121
@_implementationOnly import OS.Darwin
2222
#endif
2323

24+
@_implementationOnly import _Builtin_stddef
2425
@_implementationOnly import OS.Libc
2526
@_implementationOnly import Runtime
2627

0 commit comments

Comments
 (0)