mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-01-10 05:47:04 +00:00
bug 244156 disable PCH when whole program optimization is enabled
patch by Stephen Walker <sdwalker@myrealbox.com> r=bsmedberg
This commit is contained in:
parent
79713865dc
commit
02b411960e
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user