openoffice-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Don Lewis <>
Subject Re: branches/gbuild-reintegration merged
Date Wed, 17 Aug 2016 16:31:10 GMT
On 16 Aug, Don Lewis wrote:
> On  7 Aug, Damjan Jovanovic wrote:
>> Hi
>> branches/gbuild-reintegration has been merged to trunk. It has > 136
>> patches and makes many changes throughout the code, so you probably need to
>> "dmake clean" before rebuilding.
>> I haven't fixed the Windows build performance regression caused by issue
>> #117845, so if you're building on Windows use --disable-pch which only
>> extends your build time by around 2 hours instead of 6. If you aren't happy
>> with this, please help me figure out the problem.
> I did some sleuthing ...
> I compared build logs between --enable-pch and --disable-pch builds. The
> compiler command line for the --enable-pch build has the additional
> option
> which causes precompiled_foo.hxx to pull in a whole wad of headers even
> if they aren't needed to compile an individual .cxx file.  That's why
> the build is taking longer.  A precompiled version of
> precompiled_foo.hxx is build beforehand by passing
> -Ycprecompiled_foo.hxx to the compiler, but gbuild neglects to tell the
> compiler to use it when building all the .cxx files because it never
> passes -Yuprecompiled_foo.hxx to the compiler.
> That option is supposed to come from
> gb_PrecompiledHeader_get_enableflags or
> gb_NoexPrecompiledHeader_get_enableflags in, but for some
> reason that isn't getting activated.
> I don't see any obvious recent changes that might have broken this.

More digging ... contains some logic to that only enables the use of
precompiled headers when the compiler flags that were used to build the
precompiled header match the flags used to compile the target source
file.  If I compare the compiler flags used to build the precompiled
header with the flags used to compile one of the source files, I see
these differences:

@@ -33,7 +33,6 @@
@@ -78,13 +77,13 @@
@@ -108,7 +107,5 @@

The potentially important differences are:

  * When building the precompiled header, -DSW_DLLIMPLEMENTATION is

  * These flags are used when building the precompiled header:
    -Fd$W/LinkTarget/pdb/Library/isw.lib.pdb -I$S/sw/inc/pch/
    whereas these flags are used when building the target:
    -Fd -I$S/sw/source/core/access/

Another observation is that if an override of the compiler flags for
a particular target disables the use of precompiled headers, then
-DPRECOMPILED_HEADERS should not be passed to the compiler if -Yu is
not.  That would avoid the pessimization of including all of those extra
headers that are not used.

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message