C++ Logo

sg15

Advanced search

Re: [Modules] Should the compiler try to build std module implicitly?

From: Ville Voutilainen <ville.voutilainen_at_[hidden]>
Date: Tue, 12 Dec 2023 11:18:43 +0200
On Tue, 12 Dec 2023 at 11:11, Boris Kolpackov via SG15
<sg15_at_[hidden]> wrote:
>
> Michael Spencer via SG15 <sg15_at_[hidden]> writes:
>
> > * Delete all the temp files at the end after linking
>
> Building a hello-world example with Clang that imports libc++'s std
> module (including building the BMI for it) takes about 1.5s on my
> machine (i9-12900K). For comparison, the #include <iostream> version
> takes 0.3s. Maybe this is acceptable but it will surely be painful
> in the educational setting, where one will presumably be making a
> lot of mistakes and thus doing a lot of recompilations.

"Switch to modules, it's better for you but your builds will take longer".
Something.. ..is off with that. :)

Received on 2023-12-12 09:18:56