diff options
| author | Eric Fiselier <eric@efcs.ca> | 2016-12-08 06:37:41 +0000 |
|---|---|---|
| committer | Eric Fiselier <eric@efcs.ca> | 2016-12-08 06:37:41 +0000 |
| commit | 900efb2f1a334ff615c0b4e36abe0f77345b5fce (patch) | |
| tree | 19a0e9e5fd039944a1f738fd490b0537cdababc8 /libcxx/include/module.modulemap | |
| parent | 76a878b8f86772ad8b6451a1b86772302649a54f (diff) | |
| download | bcm5719-llvm-900efb2f1a334ff615c0b4e36abe0f77345b5fce.tar.gz bcm5719-llvm-900efb2f1a334ff615c0b4e36abe0f77345b5fce.zip | |
Fix _LIBCPP_VERSION tests with modules on Darwin
llvm-svn: 289028
Diffstat (limited to 'libcxx/include/module.modulemap')
| -rw-r--r-- | libcxx/include/module.modulemap | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/libcxx/include/module.modulemap b/libcxx/include/module.modulemap index 13fa4993f07..95610bfb735 100644 --- a/libcxx/include/module.modulemap +++ b/libcxx/include/module.modulemap @@ -1,4 +1,12 @@ +// define the module for __config outside of the top level 'std' module +// since __config may be included from C headers which may create an +// include cycle. +module std_config [system] [extern_c] { + header "__config" +} + module std [system] { + export std_config // FIXME: The standard does not require that each of these submodules // re-exports its imported modules. We should provide an alternative form of // export that issues a warning if a name from the submodule is used, and @@ -463,11 +471,6 @@ module std [system] { export * } - // FIXME: We don't have modules for the <foo.h> 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 __debug { header "__debug" export * } |

