0e100a4d89
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>
11 lines
324 B
CMake
11 lines
324 B
CMake
cmake_minimum_required(VERSION 3.16)
|
|
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()
|