Author Topic: Compling only modified files  (Read 4676 times)

drogza

  • Guest
Compling only modified files
« on: August 17, 2009, 12:29:39 am »
Hello,

Is there a way to compile only the files recently modified?

Each time I hit build, it compiles the whole files of the proyect instead of just the file or files recently changed.

thanks for the tips

Offline stahta01

  • Lives here!
  • ****
  • Posts: 7789
    • My Best Post
Re: Compling only modified files
« Reply #1 on: August 17, 2009, 12:48:32 am »
One make sure you are hitting build not rebuild.
Build only builds files that are newer than the output objects.

Tim S.
C Programmer working to learn more about C++ and Git.
On Windows 10 64 bit and Windows 11 64 bit.
--
When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org

Offline blueshake

  • Regular
  • ***
  • Posts: 458
Re: Compling only modified files
« Reply #2 on: August 17, 2009, 03:02:46 am »
hi, you can do this.
in menu build->compile current file.
Keep low and hear the sadness of little dog.
I fall in love with a girl,but I don't dare to tell her.What should I do?

Offline Jenna

  • Administrator
  • Lives here!
  • *****
  • Posts: 7252
Re: Compling only modified files
« Reply #3 on: August 17, 2009, 06:41:58 am »
Is there a way to compile only the files recently modified?

That's the normal behaviour.
As Tim wrote, make sure not to hit rebuild instead of build accidently.

Check the time stamps of your files, where do you save them ?
And be aware, that if you change include files, that might also lead to a recompile of an unchanged file.
« Last Edit: August 17, 2009, 07:25:48 am by jens »