diff options
author | Lorn Potter <lorn.potter@gmail.com> | 2021-04-16 15:34:57 +1000 |
---|---|---|
committer | Lorn Potter <lorn.potter@gmail.com> | 2021-10-05 11:30:06 +1000 |
commit | 0e100a4d892cbdcdb7f326213ec1e4d0d1ae6d89 (patch) | |
tree | 94cdd5d90fc1ea64bdf6e589b152687980010c0e /config.tests | |
parent | ef623fd16fa8cb58e7a0f8c04af75ee8b3f2752f (diff) |
wasm: add simd support
Emscripten only supports
SSE1, SSE2, SSE3, SSSE3, SSE4.1, SSE4.2, and 128-bit AVX instruction
sets at this time.
https://emscripten.org/docs/porting/simd.html
Browsers might need to enable simd support in the advanced
configurations
about: config or chrome:flags
Enable by configuring Qt with -sse2
Pick-to: 6.2
Fixes: QTBUG-63924
Change-Id: Ifeafae20e199dee0d19689802ad20fd0bd424ca7
Reviewed-by: Morten Johan Sørvig <morten.sorvig@qt.io>
Diffstat (limited to 'config.tests')
-rw-r--r-- | config.tests/arch/CMakeLists.txt | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/config.tests/arch/CMakeLists.txt b/config.tests/arch/CMakeLists.txt index 2e11f20674..9ef6e37b3b 100644 --- a/config.tests/arch/CMakeLists.txt +++ b/config.tests/arch/CMakeLists.txt @@ -4,3 +4,7 @@ project(arch LANGUAGES CXX) add_executable(architecture_test) set_property(TARGET architecture_test PROPERTY MACOSX_BUNDLE FALSE) target_sources(architecture_test PRIVATE arch.cpp) + +if(EMSCRIPTEN) + target_compile_options(architecture_test PRIVATE -O2 -msimd128 -msse -msse2) +endif() |