File tree Expand file tree Collapse file tree 3 files changed +2
-11
lines changed Expand file tree Collapse file tree 3 files changed +2
-11
lines changed Original file line number Diff line number Diff line change @@ -310,10 +310,8 @@ void ModuleMap::resolveHeader(Module *Mod,
310
310
} else if (Header.HasBuiltinHeader && !Header.Size && !Header.ModTime ) {
311
311
// There's a builtin header but no corresponding on-disk header. Assume
312
312
// this was supposed to modularize the builtin header alone.
313
- } else if ((Header.Kind == Module::HK_Excluded) ||
314
- (Header.Kind == Module::HK_Textual)) {
315
- // Ignore excluded and textual header files as a module can be built with
316
- // such headers missing.
313
+ } else if (Header.Kind == Module::HK_Excluded) {
314
+ // Ignore missing excluded header files. They're optional anyway.
317
315
} else {
318
316
// If we find a module that has a missing header, we mark this module as
319
317
// unavailable and store the header directive for displaying diagnostics.
Original file line number Diff line number Diff line change @@ -30,7 +30,3 @@ module missing_umbrella_with_inferred_submodules {
30
30
module * { export * }
31
31
export *
32
32
}
33
-
34
- module missing_textual_header {
35
- textual header "missing_textual.h"
36
- }
Original file line number Diff line number Diff line change 8
8
@import missing_unavailable_headers.not_missing; // OK
9
9
// CHECK-NOT: missing_unavailable_headers
10
10
11
- @import missing_textual_header; // OK
12
- // CHECK-NOT: missing_textual_header
13
-
14
11
@import missing_headers;
15
12
// CHECK: module.modulemap:15:27: error: header 'missing.h' not found
16
13
// CHECK: could not build module 'missing_headers'
You can’t perform that action at this time.
0 commit comments