Date: prev next · Thread: first prev next last
2013 Archives by date, by thread · List index


Hi Jeff,

On Mon, 2013-12-23 at 20:10 +0800, Jeff Cai wrote:
I am new to LibreOffice. Recently, I downloaded the code and started
my build. At first, I built under Linux, which simply "git", apt-get
those library, autogen and make. It worked like a charm.

        Good :-)

Then I switched to Windows build. I noticed that it builds more things
than Linux build does(Like unit test). And it's much SLOWER!

        Linux builds the same unit test, but they run headless so you just
don't see them :-) Also the unit tests on Windows are more valuable
since there are many fewer developers there.

Is there any way to speed up windows build ?

        You can disable link time optimisation with a configure option, that
probably helps quite a bit, and of course you can turn off debugging
symbols - that may also help - though both clearly have costs for
debugging / runtime performance.

 I used precompiled header in my autogen.sh, I also use the "correct"
make(3.82) from libreoffice build tool, and set parallels parameter to
4(make -j 4).

        Yep - the state of the cygwin build & MSVC compiler is really rather
appalling there, clearly even working out what is wrong with MSVC is
hard. Kohei had some data point around the new templates in the string
header taking a long time to compile: I wonder whether we could make
those Linux-only, and use a 'const char *' constructor on Windows (which
may speed things up).

Any way to disable the build of unit tests? I've searched through the
help to autgen, and found nothing.

        There is but it's deliberately hard to find ;-) it's not good for the
health of your build.

        If you are doing an incremental build; it's far better to do eg.

        'make sc'

        to just re-build calc.

        HTH,

                Michael.

-- 
 michael.meeks@collabora.com  <><, Pseudo Engineer, itinerant idiot


Context


Privacy Policy | Impressum (Legal Info) | Copyright information: Unless otherwise specified, all text and images on this website are licensed under the Creative Commons Attribution-Share Alike 3.0 License. This does not include the source code of LibreOffice, which is licensed under the Mozilla Public License (MPLv2). "LibreOffice" and "The Document Foundation" are registered trademarks of their corresponding registered owners or are in actual use as trademarks in one or more countries. Their respective logos and icons are also subject to international copyright laws. Use thereof is explained in our trademark policy.