New option that disables precompiled headers.
Very often get error cannot write PCH file: No space left on device.
This commit is contained in:
parent
53f53079a3
commit
44a2b9b0f4
18
common.pri
18
common.pri
|
@ -234,15 +234,19 @@ defineTest(forceCopyToDestdir) {
|
||||||
# We use precompiled headers for more fast compilation source code.
|
# We use precompiled headers for more fast compilation source code.
|
||||||
defineReplace(set_PCH){
|
defineReplace(set_PCH){
|
||||||
no_ccache{
|
no_ccache{
|
||||||
CONFIG += precompile_header # Turn on creation precompiled headers (PCH).
|
no_pch{ # To disable recompiled headers (PCH) run qmake with CONFIG+=no_pch
|
||||||
export(CONFIG) # export value to global variable.
|
return(true)
|
||||||
|
} else {
|
||||||
|
CONFIG += precompile_header # Turn on creation precompiled headers (PCH).
|
||||||
|
export(CONFIG) # export value to global variable.
|
||||||
|
|
||||||
PRECOMPILED_HEADER = stable.h # Header file with all all static headers: libraries, static local headers.
|
PRECOMPILED_HEADER = stable.h # Header file with all all static headers: libraries, static local headers.
|
||||||
export(PRECOMPILED_HEADER) # export value to global variable
|
export(PRECOMPILED_HEADER) # export value to global variable
|
||||||
|
|
||||||
*msvc* {
|
*msvc* {
|
||||||
PRECOMPILED_SOURCE = stable.cpp # MSVC need also cpp file.
|
PRECOMPILED_SOURCE = stable.cpp # MSVC need also cpp file.
|
||||||
export(PRECOMPILED_SOURCE) # export value to global variable.
|
export(PRECOMPILED_SOURCE) # export value to global variable.
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return(true)
|
return(true)
|
||||||
|
|
6
dist/rpm/valentina.spec
vendored
6
dist/rpm/valentina.spec
vendored
|
@ -133,13 +133,13 @@ a unique pattern making tool.
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%if 0%{?suse_version} > 0
|
%if 0%{?suse_version} > 0
|
||||||
qmake-qt5 PREFIX=%{_prefix} PREFIX_LIB=%{_prefix}/%{_lib} Valentina.pro -r "CONFIG += noTests noRunPath no_ccache noDebugSymbols"
|
qmake-qt5 PREFIX=%{_prefix} PREFIX_LIB=%{_prefix}/%{_lib} Valentina.pro -r "CONFIG += noTests noRunPath no_ccache noDebugSymbols no_pch"
|
||||||
%else
|
%else
|
||||||
|
|
||||||
%if 0%{?mageia} >= 6
|
%if 0%{?mageia} >= 6
|
||||||
qmake PREFIX=%{_prefix} PREFIX_LIB=%{_prefix}/%{_lib} Valentina.pro -r "CONFIG += noTests noRunPath no_ccache noDebugSymbols"
|
qmake PREFIX=%{_prefix} PREFIX_LIB=%{_prefix}/%{_lib} Valentina.pro -r "CONFIG += noTests noRunPath no_ccache noDebugSymbols no_pch"
|
||||||
%else
|
%else
|
||||||
qmake-qt5 PREFIX=%{_prefix} PREFIX_LIB=%{_prefix}/%{_lib} Valentina.pro -r "CONFIG += noTests noRunPath no_ccache noDebugSymbols"
|
qmake-qt5 PREFIX=%{_prefix} PREFIX_LIB=%{_prefix}/%{_lib} Valentina.pro -r "CONFIG += noTests noRunPath no_ccache noDebugSymbols no_pch"
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
%endif
|
%endif
|
||||||
|
|
Loading…
Reference in New Issue
Block a user