Redunce Build Time

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Redunce Build Time

Chris Cranford
If I only changed 1 .cpp file for some testing, is there a way to rerun
the build process without having to rerun it for all files?  This seems
to take 5-10 minutes each time and I'd like to reduce this process there
is a way.

Please advise.

--
Chris
_______________________________________________
dev-builds mailing list
[hidden email]
https://lists.mozilla.org/listinfo/dev-builds
Reply | Threaded
Open this post in threaded view
|

Re: Redunce Build Time

Frank Wein
Chris Cranford wrote:
> If I only changed 1 .cpp file for some testing, is there a way to rerun
> the build process without having to rerun it for all files?  This seems
> to take 5-10 minutes each time and I'd like to reduce this process there
> is a way.
>
> Please advise.

It depends what .cpp file you changed. But since you posted in
apps.thunderbird i guess you changed a .cpp file in mailnews/ ;)? In
mailnews/ you normally cd to the folder one below mailnews/ you changed
something in. For example, if you changed a file in mailnews/base/src/,
you cd to the folder mailnews/base/ and execute make there (if you use a
obj-dir for building, you have to cd into the obj-dir of course). You
could also execute make in the src/ folder and then execute make in the
build/ folder to save a bit of time. After that you have to execute make
in mailnews/build/. If you changed something in mail/, you normally
execute make in the folder you changed something in and then go up the
folder chain and look for a build/ folder if there is one (for example
if you change something in mail/components/migration/src/ you have to
execute make in that folder and then walk up the folder chain and look
for a build/ folder, here mail/components/build/ where you then execute
make again). In general it's a good idea to use LXR
(http://lxr.mozilla.org/mozilla/) to find out if/where the library name
is referenced and so find out what folder you need to execute make in.

Frank
_______________________________________________
dev-builds mailing list
[hidden email]
https://lists.mozilla.org/listinfo/dev-builds
Reply | Threaded
Open this post in threaded view
|

Re: Redunce Build Time

Jungshik Shin
Frank Wein wrote:
> Chris Cranford wrote:
>> If I only changed 1 .cpp file for some testing, is there a way to rerun
>> the build process without having to rerun it for all files?  This seems

> in mailnews/build/. If you changed something in mail/, you normally
> execute make in the folder you changed something in and then go up the
> folder chain and look for a build/ folder if there is one (for example
...
> make again). In general it's a good idea to use LXR
> (http://lxr.mozilla.org/mozilla/) to find out if/where the library name
> is referenced and so find out what folder you need to execute make in.

A hard-to-find example is content/.  If you make a change below
'content/', you have to run 'make' in layout/build/  I was bitten hard a
few years ago by this. (I made a change in content, but it never showed
up in the binary until I realized this dependency and ran make in 'layout'.)

In addition, I make it a rule to make in 'browser/app' (for firefox) and
'mail/app' (for TB) after making any change. This might not be necessary
in all build configurations, but I just do it to be safe.

Jungshik
_______________________________________________
dev-builds mailing list
[hidden email]
https://lists.mozilla.org/listinfo/dev-builds