From d3a7bfcde543b9a5adb31d042d0aa7a3907ceaa6 Mon Sep 17 00:00:00 2001 From: Richard Smith Date: Tue, 13 Oct 2015 22:13:33 +0000 Subject: Remove __config module to avoid #include cycle when libc headers include libc++'s headers. llvm-svn: 250236 --- libcxx/include/module.modulemap | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'libcxx/include/module.modulemap') diff --git a/libcxx/include/module.modulemap b/libcxx/include/module.modulemap index 3c0700eca44..3fb7428411d 100644 --- a/libcxx/include/module.modulemap +++ b/libcxx/include/module.modulemap @@ -455,9 +455,13 @@ module std [system] { export * } + // FIXME: We don't have modules for the headers, because they might + // be included from the C library's headers, and that would create a #include + // cycle. For the same reason, we don't have a module for __config. + //module __config { header "__config" export * } + // FIXME: These should be private. module __bit_reference { header "__bit_reference" export * } - module __config { header "__config" export * } module __debug { header "__debug" export * } module __functional_base { header "__functional_base" export * } module __hash_table { header "__hash_table" export * } -- cgit v1.2.3