diff options
author | Luboš Luňák <l.lunak@suse.cz> | 2013-06-18 18:05:52 +0200 |
---|---|---|
committer | Luboš Luňák <l.lunak@suse.cz> | 2013-06-18 18:10:32 +0200 |
commit | 67a798c0023326561e07313fd732162f0c053bd0 (patch) | |
tree | 2e678154bd09bdf16aebcdd7d90be60a6304bad4 /solenv/gbuild/PrecompiledHeaders.mk | |
parent | use sizegroups and shown/hidden buttons to stop ui jitter (diff) | |
download | core-67a798c0023326561e07313fd732162f0c053bd0.tar.gz core-67a798c0023326561e07313fd732162f0c053bd0.zip |
remove PCH file before generating it
Compilers do not necessarily output all includes files when included
using a PCH, so when a PCH is being rebuilt, it might actually get
reused this way, causing its dependencies to be incomplete afterwards.
The PCH actually should not be used when being regenerated, but with MSVC
this apparently happens, even though there's only the option to create
PCH, not to use it.
Change-Id: Iee1340a60085550ab867304c44752daa04cbba31
Diffstat (limited to 'solenv/gbuild/PrecompiledHeaders.mk')
-rw-r--r-- | solenv/gbuild/PrecompiledHeaders.mk | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/solenv/gbuild/PrecompiledHeaders.mk b/solenv/gbuild/PrecompiledHeaders.mk index 1bc4b8adbd81..1dddeb815eb4 100644 --- a/solenv/gbuild/PrecompiledHeaders.mk +++ b/solenv/gbuild/PrecompiledHeaders.mk @@ -42,9 +42,11 @@ $(call gb_NoexPrecompiledHeader_get_dep_target,%) : echo "$(call gb_NoexPrecompiledHeader_get_target,$*) : $(gb_Helper_PHONY)" > $@) $(call gb_PrecompiledHeader_get_target,%) : + rm -f $@ $(call gb_PrecompiledHeader__command,$@,$*,$<,$(PCH_DEFS),$(PCH_CXXFLAGS) $(gb_PrecompiledHeader_EXCEPTIONFLAGS),$(INCLUDE)) $(call gb_NoexPrecompiledHeader_get_target,%) : + rm -f $@ $(call gb_NoexPrecompiledHeader__command,$@,$*,$<,$(PCH_DEFS),$(PCH_CXXFLAGS) $(gb_NoexPrecompiledHeader_NOEXCEPTIONFLAGS),$(INCLUDE)) .PHONY : $(call gb_PrecompiledHeader_get_clean_target,%) $(call gb_NoExPrecompiledHeader_get_clean_target,%) |