diff options
Diffstat (limited to 'configure.pri')
-rw-r--r-- | configure.pri | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/configure.pri b/configure.pri index ea482552c4..a67860fba0 100644 --- a/configure.pri +++ b/configure.pri @@ -395,6 +395,29 @@ defineTest(qtConfTest_buildParts) { return(true) } +defineTest(qtConfTest_x86Simd) { + simd = $$section(1, ".", -1) # last component + $${1}.args = CONFIG+=add_cflags DEFINES+=NO_ATTRIBUTE SIMD=$$simd + $${1}.test = x86_simd + qtConfTest_compile($${1}) +} + +defineTest(qtConfTest_x86SimdAlways) { + configs = + fpfx = $${currentConfig}.features + tpfx = $${currentConfig}.tests + + # Make a list of all passing features whose tests have type=x86Simd + for (f, $${tpfx}._KEYS_) { + !equals($${tpfx}.$${f}.type, "x86Simd"): \ + next() + qtConfCheckFeature($$f) + equals($${fpfx}.$${f}.available, true): configs += $$f + } + $${1}.literal_args = $$system_quote(SIMD=$$join(configs, " ")) + qtConfTest_compile($${1}) +} + # custom outputs # this reloads the qmakespec as completely as reasonably possible. |