mirror of
https://github.com/intel/llvm.git
synced 2026-01-26 03:56:16 +08:00
Don't re-export top-level modules
In https://reviews.llvm.org/D119036 we fixed some of the infrastructure by removing the textual keyword. The underlying issue of PR50592 was that clang can re-export only submodules but under some conditions we needed to re-export the standalone module std_config via std. This patch provides a better fix to the symptom D119036 fixed. Differential revision: https://reviews.llvm.org/D142805
This commit is contained in:
@@ -2,12 +2,11 @@
|
||||
// since __config may be included from C headers which may create an
|
||||
// include cycle.
|
||||
module std_config [system] [extern_c] {
|
||||
header "__config"
|
||||
textual header "__config"
|
||||
export *
|
||||
}
|
||||
|
||||
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
|
||||
|
||||
Reference in New Issue
Block a user