summaryrefslogtreecommitdiffstats
path: root/src/gui
diff options
context:
space:
mode:
authorAllan Sandfeld Jensen <allan.jensen@qt.io>2020-07-09 14:16:23 +0200
committerAlexandru Croitor <alexandru.croitor@qt.io>2020-07-09 23:02:39 +0200
commit60d72b7ab6b08a43248764ddc7b710fc757a3e5a (patch)
tree57b9e544935323d6dfa2de279ffd7a201a34a6ea /src/gui
parentf9e167409486998b76cedd8ce50ca1381bcd6e6a (diff)
CMake: Fix incorrect SIMD arch_haswell and avx profile conditions
Fix the conditions in qt_add_simd_part for arch_haswell and the avx512 profiles to mimic what simd.prf does. Add missing SIMD flags in QtCompilerOptimization for arch_haswell. Compute the compile flags for the avx512 profiles from the profile dependencies. Remove the special case in Gui that hardcoded the compilation of qdrawhelper_avx2.cpp to be conditional on avx2 being enabled instead of arch_haswell. The Gui project already has another qt_add_simd_part that is enabled if arch_haswell is enabled, which will now work correctly due to the fixes in qt_add_simd_part. Change-Id: I7a61a03b5565d4fa438f22b329e0d9dd7acd9273 Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org> Reviewed-by: Joerg Bornemann <joerg.bornemann@qt.io>
Diffstat (limited to 'src/gui')
-rw-r--r--src/gui/CMakeLists.txt9
1 files changed, 0 insertions, 9 deletions
diff --git a/src/gui/CMakeLists.txt b/src/gui/CMakeLists.txt
index 21dc18721e..a31b13ff58 100644
--- a/src/gui/CMakeLists.txt
+++ b/src/gui/CMakeLists.txt
@@ -305,15 +305,6 @@ if(QT_FEATURE_reduce_relocations AND UNIX AND GCC)
endif()
# special case begin
-# Replace arch_haswell with avx2 feature. That is what is used in the code requireing
-# this file, too!
-qt_add_simd_part(Gui SIMD avx2
- SOURCES
- painting/qdrawhelper_avx2.cpp
-)
-# special case end
-
-# special case begin
qt_extend_target(Gui CONDITION QT_FEATURE_standarditemmodel
SOURCES
itemmodels/qstandarditemmodel.cpp itemmodels/qstandarditemmodel.h itemmodels/qstandarditemmodel_p.h