
we first touch any part of that module. Instead, defer them until the first time that module is (transitively) imported. The initializer step for a module then recursively initializes modules that its own headers imported. For example, this avoids running the <iostream> global initializer in programs that don't actually use iostreams, but do use other parts of the standard library. llvm-svn: 276159
4 lines
143 B
Plaintext
4 lines
143 B
Plaintext
module used { header "used.h" }
|
|
module unused { header "unused.h" }
|
|
module init { module a { header "init.h" } module b { header "other.h" } }
|