Skip to content

Commit bfe466b

Browse files
committed
[cxx-interop] Add cassert header to libstdc++ modulemap
Previously this header was sometimes getting hijacked by the first header to include it. This caused Swift compiler failures on Linux when using any LLVM header that uses `assert`. Now `cassert` is referenced directly from a modulemap, which fixes the issue. tmp vfs
1 parent af7b83d commit bfe466b

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

stdlib/public/Cxx/libstdcxx.modulemap

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,4 +20,13 @@ module std {
2020
header "libstdcxx.h"
2121
requires cplusplus
2222
export *
23+
24+
/// C compatibility headers.
25+
module compat {
26+
module cassert {
27+
header "cassert"
28+
requires cplusplus
29+
export *
30+
}
31+
}
2332
}

0 commit comments

Comments
 (0)