mirror of
https://bitbucket.org/smil3y/katie.git
synced 2025-02-24 19:02:59 +00:00
make it possible to disable all CPU features usage via "all" keyword
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
This commit is contained in:
parent
12a8fc09c3
commit
b3ae735d42
1 changed files with 3 additions and 1 deletions
|
@ -387,7 +387,9 @@ uint qDetectCPUFeatures()
|
|||
|
||||
uint f = detectProcessorFeatures();
|
||||
QByteArray disable = qgetenv("QT_NO_CPU_FEATURE");
|
||||
if (!disable.isEmpty()) {
|
||||
if (disable == "all") {
|
||||
f = 0;
|
||||
} else if (!disable.isEmpty()) {
|
||||
disable.prepend(' ');
|
||||
for (int i = 0; i < features_count; ++i) {
|
||||
if (disable.contains(features_string + features_indices[i]))
|
||||
|
|
Loading…
Add table
Reference in a new issue