mirror of
https://github.com/llvm-mirror/libcxx.git
synced 2025-10-23 18:38:30 +08:00
Fix _LIBCPP_VERSION tests with modules on Darwin
git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@289028 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -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] {
|
module std [system] {
|
||||||
|
export std_config
|
||||||
// FIXME: The standard does not require that each of these submodules
|
// FIXME: The standard does not require that each of these submodules
|
||||||
// re-exports its imported modules. We should provide an alternative form of
|
// 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
|
// export that issues a warning if a name from the submodule is used, and
|
||||||
@@ -463,11 +471,6 @@ module std [system] {
|
|||||||
export *
|
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.
|
// FIXME: These should be private.
|
||||||
module __bit_reference { header "__bit_reference" export * }
|
module __bit_reference { header "__bit_reference" export * }
|
||||||
module __debug { header "__debug" export * }
|
module __debug { header "__debug" export * }
|
||||||
|
Reference in New Issue
Block a user