Recent

Author Topic: Build\Build all and Fast compile.  (Read 5717 times)

Alex Cones

  • Jr. Member
  • **
  • Posts: 73
    • FLSoft
Build\Build all and Fast compile.
« on: August 17, 2011, 04:30:54 pm »
Hello!

In Run (Запуск) menu i have a next choice:

Build (Собрать) Ctrl+F9
Build all (Собрать все)
Fast compile (Быстрая компиляция)



I`m always use a "Build all". What a difference between this three points?
To beer or not to beer?
_____________________
I`m terribly sorry for my Anglish. :)

lainz

  • Guest
Re: Build\Build all and Fast compile.
« Reply #1 on: August 17, 2011, 05:10:30 pm »
I have the same question.

marcov

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 8902
  • FPC developer.
Re: Build\Build all and Fast compile.
« Reply #2 on: August 17, 2011, 05:32:48 pm »
Typically:

  • (fast) compile -> build all bits of a projects that need to be build to create the program binary (.exe), reuse compiled units if they are not modified
  • build  -> (re)build everything in the project
  • build all -> build all open projects

I'm not sure how this applies to Lazarus though, specially the difference between build and build all. (since there are no project groups yet?)

Alex Cones

  • Jr. Member
  • **
  • Posts: 73
    • FLSoft
Re: Build\Build all and Fast compile.
« Reply #3 on: August 17, 2011, 06:04:58 pm »
Anyway thank you for answer.
To beer or not to beer?
_____________________
I`m terribly sorry for my Anglish. :)

Martin_fr

  • Administrator
  • Hero Member
  • *
  • Posts: 6720
  • Debugger - SynEdit - and more
    • wiki
Re: Build\Build all and Fast compile.
« Reply #4 on: August 17, 2011, 08:26:00 pm »
Afaik:

"fast compile" Compiles only, but does not link. Linking takes quite some time, skipping it means you get no executable, but you can test that you code compiles.

Normal build, compiles (and links) only units that need to be compiled. That is units that were changed, or depend on changed units.

"Build All", forces all units to be compiled (and linked).
That refers to units in your project. Units in packages used, are only compiled if changed, orr depend on changed units (afaik)

Alex Cones

  • Jr. Member
  • **
  • Posts: 73
    • FLSoft
Re: Build\Build all and Fast compile.
« Reply #5 on: August 18, 2011, 09:06:11 am »
Quote
"fast compile" Compiles only, but does not link. Linking takes quite some time, skipping it means you get no executable, but you can test that you code compiles.
Are there guaranties, that application, that was "fast compiled" and tested only in debugger will work in exe too?
To beer or not to beer?
_____________________
I`m terribly sorry for my Anglish. :)

 

TinyPortal © 2005-2018