Justin
Justin

Reputation: 45350

Speed up compile time with make

Is there anyway to speed up the time it takes a run a make compile. We have a package that takes 12 minutes and looking to speed that up. Any flags to pass to make, or way to run it parallel.

Upvotes: 2

Views: 219

Answers (1)

Eduardo Ivanec
Eduardo Ivanec

Reputation: 11862

Try running make -jN with N being the number of cores in your system if you haven't already.

Try using fewer compile time optimizations if it applies (avoid -O3 in particular).

You can also take a look at distcc.

Upvotes: 7

Related Questions