From 44d1476b6d36e96b85a1fc388405e42aaf887c46 Mon Sep 17 00:00:00 2001 From: Richard Smith Date: Tue, 13 Oct 2015 22:13:33 +0000 Subject: [PATCH] Remove __config module to avoid #include cycle when libc headers include libc++'s headers. git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@250236 91177308-0d34-0410-b5e6-96231b3b80d8 --- include/module.modulemap | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/include/module.modulemap b/include/module.modulemap index 3c0700ec..3fb74284 100644 --- a/include/module.modulemap +++ b/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 * }