bug 244156 disable PCH when whole program optimization is enabled

patch by Stephen Walker <sdwalker@myrealbox.com> r=bsmedberg
This commit is contained in:
cbiesinger%web.de 2004-06-03 20:31:47 +00:00
parent 79713865dc
commit 02b411960e

View File

@ -142,10 +142,13 @@ endif
ifeq ($(OS_ARCH),WINNT)
ifndef GNU_CXX
# whole program optimization and precompiled headers are incompatible
ifeq (,$(findstring GL,$(CXXFLAGS)))
# use pre-compiled headers
CXXFLAGS += -YX -Fp$(LIBRARY_NAME).pch
# precompiled headers require write access to .pch which breaks -j builds
.NOTPARALLEL::
endif
endif
endif