Mercurial > hg > truffle
comparison make/linux/makefiles/gcc.make @ 6129:4d399f013e5a
7175914: Usage of gcc with precompiled headers produces wrong build dependencies
Summary: Add -fpch-deps flag to gcc builds
Reviewed-by: kamg, coleenp
Contributed-by: volker.simonis@gmail.com
author | kamg |
---|---|
date | Mon, 11 Jun 2012 13:10:14 -0400 |
parents | 74c359c4a9e5 |
children | 282abd0fd878 |
comparison
equal
deleted
inserted
replaced
6128:0a8b8cb8b22c | 6129:4d399f013e5a |
---|---|
164 OPT_CFLAGS/mulnode.o += -O0 | 164 OPT_CFLAGS/mulnode.o += -O0 |
165 endif | 165 endif |
166 | 166 |
167 # Flags for generating make dependency flags. | 167 # Flags for generating make dependency flags. |
168 ifneq ("${CC_VER_MAJOR}", "2") | 168 ifneq ("${CC_VER_MAJOR}", "2") |
169 DEPFLAGS = -MMD -MP -MF $(DEP_DIR)/$(@:%=%.d) | 169 DEPFLAGS = -fpch-deps -MMD -MP -MF $(DEP_DIR)/$(@:%=%.d) |
170 endif | 170 endif |
171 | 171 |
172 # -DDONT_USE_PRECOMPILED_HEADER will exclude all includes in precompiled.hpp. | 172 # -DDONT_USE_PRECOMPILED_HEADER will exclude all includes in precompiled.hpp. |
173 ifeq ($(USE_PRECOMPILED_HEADER),0) | 173 ifeq ($(USE_PRECOMPILED_HEADER),0) |
174 CFLAGS += -DDONT_USE_PRECOMPILED_HEADER | 174 CFLAGS += -DDONT_USE_PRECOMPILED_HEADER |