7175914: Usage of gcc with precompiled headers produces wrong build dependencies
Add -fpch-deps flag to gcc builds Reviewed-by: kamg, coleenp
This commit is contained in:
parent
a928a2df96
commit
7c17e9e75b
@ -214,7 +214,7 @@ endif
|
|||||||
|
|
||||||
# Flags for generating make dependency flags.
|
# Flags for generating make dependency flags.
|
||||||
ifneq ("${CC_VER_MAJOR}", "2")
|
ifneq ("${CC_VER_MAJOR}", "2")
|
||||||
DEPFLAGS = -MMD -MP -MF $(DEP_DIR)/$(@:%=%.d)
|
DEPFLAGS = -fpch-deps -MMD -MP -MF $(DEP_DIR)/$(@:%=%.d)
|
||||||
endif
|
endif
|
||||||
|
|
||||||
# -DDONT_USE_PRECOMPILED_HEADER will exclude all includes in precompiled.hpp.
|
# -DDONT_USE_PRECOMPILED_HEADER will exclude all includes in precompiled.hpp.
|
||||||
|
@ -166,7 +166,7 @@ endif
|
|||||||
|
|
||||||
# Flags for generating make dependency flags.
|
# Flags for generating make dependency flags.
|
||||||
ifneq ("${CC_VER_MAJOR}", "2")
|
ifneq ("${CC_VER_MAJOR}", "2")
|
||||||
DEPFLAGS = -MMD -MP -MF $(DEP_DIR)/$(@:%=%.d)
|
DEPFLAGS = -fpch-deps -MMD -MP -MF $(DEP_DIR)/$(@:%=%.d)
|
||||||
endif
|
endif
|
||||||
|
|
||||||
# -DDONT_USE_PRECOMPILED_HEADER will exclude all includes in precompiled.hpp.
|
# -DDONT_USE_PRECOMPILED_HEADER will exclude all includes in precompiled.hpp.
|
||||||
|
@ -141,7 +141,7 @@ OPT_CFLAGS/NOOPT=-O0
|
|||||||
|
|
||||||
# Flags for generating make dependency flags.
|
# Flags for generating make dependency flags.
|
||||||
ifneq ("${CC_VER_MAJOR}", "2")
|
ifneq ("${CC_VER_MAJOR}", "2")
|
||||||
DEPFLAGS = -MMD -MP -MF $(DEP_DIR)/$(@:%=%.d)
|
DEPFLAGS = -fpch-deps -MMD -MP -MF $(DEP_DIR)/$(@:%=%.d)
|
||||||
endif
|
endif
|
||||||
|
|
||||||
# -DDONT_USE_PRECOMPILED_HEADER will exclude all includes in precompiled.hpp.
|
# -DDONT_USE_PRECOMPILED_HEADER will exclude all includes in precompiled.hpp.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user