diff --git a/libcxx/include/module.modulemap b/libcxx/include/module.modulemap --- a/libcxx/include/module.modulemap +++ b/libcxx/include/module.modulemap @@ -157,6 +157,13 @@ header "csetjmp" export * } + // NOTE: ensure that `ctime` preceeds `csignal` as otherwise, for a + // non-modular C runtime, you would end up with `csignal` providing time + // functions. + module ctime { + header "ctime" + export * + } module csignal { header "csignal" export * @@ -197,10 +204,6 @@ export cmath export * } - module ctime { - header "ctime" - export * - } // FIXME: is missing. module cwchar { header "cwchar"