cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: Why is the cURL source verified after compilation?

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Sat, 31 Mar 2012 14:44:52 +0200 (CEST)

On Fri, 30 Mar 2012, Andrei Cipu wrote:

> Is there a good reason why checksrc is ran *after* the files are compiled
> instead of before? It's kind of frustrating to compile for ~10min just to
> fail on some style issues.

Because in my view, the code being accurate and compilinig without warnings
and errors (and I always use -Werror) is more important than the style. What's
the style worth if it doesn't compile anyway?

You can easily invoke checksrc manually on your code if you want to check it
without actually compile!

And BTW, my primary build machine is several years old, uses a stock old HDD
and it builds libcurl much faster than ~10 minutes...

-- 
  / daniel.haxx.se
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette:  http://curl.haxx.se/mail/etiquette.html
Received on 2012-03-31