Re: [eigen] [feature request] precompiled header |
[ Thread Index |
Date Index
| More lists.tuxfamily.org/eigen Archives
]
- To: eigen@xxxxxxxxxxxxxxxxxxx
- Subject: Re: [eigen] [feature request] precompiled header
- From: Benoit Jacob <jacob.benoit.1@xxxxxxxxx>
- Date: Mon, 14 Dec 2009 13:20:16 -0500
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:content-type; bh=YZteujQ3NApCwJoge3Bb5NGzYGxPo85ZaBvDZK+GF78=; b=BOi8khHLCVcwAcBFwGUFMKdU3X4Aq1i0UjQdCr6qqZZp22l71eGJjEWlWDzpNtBdf2 U9PmpXC54zhWf8JKc2nPoETjQu7rRNjHV/O+RxuYpa3dM1glFPFmM4q9IdeaOEgvAvOP +KE9L8hqo9WMxNxRvON6fsa2LS4h1nusKJ654=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; b=hOro0D07qzxbbVqJTa1jtGB8d6NxVVxHmobPtjVE88HhsUpW7iT6ZD+NzttTxYUQmu o8isHb5bGQ6PRMUu2CKN+oll98lUMfBLwtJikfy9ZSKs6+N+ti6GCBOzk+z/21w3EY5O sTIT06t/Q4q3HavWC+uYAG/vzf8/ZNASHb4+8=
Hi,
This can't be done in such generality: precompiled headers can be
invalidated by a different choice of compiler flags and predefined
preprocessor symbols, for instance. So, only the user can generate his
own precompiled headers.
However, in the case of our unit tests, we can do something. We can't
have global compiler headers for the same reason as above, but we
should be able to make it so that when a given unit test is split into
10 executables, a precompiled header is build once and then reused.
Some care must be used, because each of the 10 channels has a
different value of CALL_SUBTEST_x etc... but definitely something can
be done here, and that would probably allow to build unit tests 2x
faster.
If anyone wants to give it a try, maybe start from:
http://midi-clorianos.blogspot.com/2009/12/precompiled-headers.html
Benoit
2009/12/14 Rohit Garg <rpg.314@xxxxxxxxx>:
> Hi,
>
> It'd be cool to have an option added in the cmake file which would
> generate precompiled headers for all the modules respectively. This
> should help with compilation times.
>
> Cheers,
>
> --
> Rohit Garg
>
> http://rpg-314.blogspot.com/
>
> Senior Undergraduate
> Department of Physics
> Indian Institute of Technology
> Bombay
>
>
>