[petsc-users] how to rebuild from updated repo

Jed Brown jedbrown at mcs.anl.gov
Mon Nov 7 16:10:48 CST 2011


On Mon, Nov 7, 2011 at 15:07, Shao-Ching Huang <huangsc at gmail.com> wrote:

> I was thinking rebuilding in 5 seconds, if I could reuse most of the
> already-built .o files. (Like in a typical makefile scenario -- only
> the changed source files are re-compiled). It seems that the petsc
> "make" command cleans up all the .o files automatically.
>

If you have CMake on your system, "make" runs a parallel CMake-generated
build that does dependency analysis. A "do-nothing" build should take about
1 second. But if you haven't updated for a while, it's likely that a header
has changed that will require recompiling more.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20111107/27f11e1a/attachment.htm>


More information about the petsc-users mailing list