Skip to content

Commit c314ae0

Browse files
committed
[Glibc] Add missing C stdlib header
`assert.h` is missing from the modulemap, which causes clang to consider `assert.h` to be a part of the first module to include it. This causes issues in SwiftCompilerSources when we try to use classes coming from LLVM headers on Linux.
1 parent 6170437 commit c314ae0

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

stdlib/public/Platform/glibc.modulemap.gyb

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,10 @@ module SwiftGlibc [system] {
4242
% end
4343

4444
header "SwiftGlibc.h"
45+
46+
// <assert.h>'s use of NDEBUG requires textual inclusion.
47+
textual header "assert.h"
48+
4549
export *
4650
}
4751

0 commit comments

Comments
 (0)