Re: always recompile file
- From: "Bruce Eitman [eMVP]" <beitman.nospam@xxxxxxxxxxxxxxxxxxxxxx>
- Date: Fri, 2 May 2008 16:51:21 -0400
I have to agree with Robert on this. If the exe is going to wander, I like
to tag it in version control, get the tagged version to a clean folder and
build the whole thing. Otherwise, what does the date and time really tell
you?
--
Bruce Eitman (eMVP)
Senior Engineer
Bruce.Eitman AT EuroTech DOT com
EuroTech Inc.
www.EuroTech.com
<r_z_aret@xxxxxxxxxxxx> wrote in message
news:t8qm14t7583au89guvkv9ja3vkehemufmg@xxxxxxxxxx
On Thu, 1 May 2008 10:32:03 -0700 (PDT), Davep15@xxxxxxxxx wrote:
We're building a project in Microsoft eMbedded Visual C++ 4.0. In one
place I use the __DATE__ and __TIME__ macros to include in code the
actual compile data and time of this version. I hope to be able to
tell exactly when an exe was made as different versions float around.
Problem is that the date and time in the executable only change if
that .cpp file was changed (as we usually use the Build Option instead
of the Rebuild All). I'm looking for a way to force the compiler to
always recompile this 1 file, even if it hasn't changed.
You can delete the .obj file, or even just change its modification
date (using a "touch" utility). I'm not sure how to automate either of
these; perhaps something in the Custom Build tab.
I try very hard to do a complete build for any executable that might
wander. That way I'm sure all changes have been incorporated and flags
such as __DATE__ are used.
-----------------------------------------
To reply to me, remove the underscores (_) from my email address (and
please indicate which newsgroup and message).
Robert E. Zaret, eMVP
PenFact, Inc.
20 Park Plaza, Suite 478
Boston, MA 02116
www.penfact.com
.
- References:
- always recompile file
- From: Davep15
- Re: always recompile file
- From: r_z_aret
- always recompile file
- Prev by Date: Re: always recompile file
- Next by Date: Re: do{...}while(0) ???
- Previous by thread: Re: always recompile file
- Next by thread: Re: Problem in porting wince 5.0 to smdk2410 board.
- Index(es):
Relevant Pages
|