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
|
@ -234,6 +234,9 @@ 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{
|
||||||
|
no_pch{ # To disable recompiled headers (PCH) run qmake with CONFIG+=no_pch
|
||||||
|
return(true)
|
||||||
|
} else {
|
||||||
CONFIG += precompile_header # Turn on creation precompiled headers (PCH).
|
CONFIG += precompile_header # Turn on creation precompiled headers (PCH).
|
||||||
export(CONFIG) # export value to global variable.
|
export(CONFIG) # export value to global variable.
|
||||||
|
|
||||||
|
@ -245,6 +248,7 @@ defineReplace(set_PCH){
|
||||||
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