summaryrefslogtreecommitdiffstats
path: root/configure.cmake
diff options
context:
space:
mode:
authorMorten Sørvig <morten.sorvig@qt.io>2022-10-07 12:00:22 +0200
committerMorten Johan Sørvig <morten.sorvig@qt.io>2022-10-19 15:02:36 +0000
commitef3813fc1eaeb739a43b00032f06a870ff22105a (patch)
tree886c997ae26f820908dfbca59b7875238ae013c2 /configure.cmake
parentf5de333192ada282189713c43fff4a89a000273e (diff)
wasm: add wasm_simd configure feature
Add Qt configure feature for enabling WebAssembly SIMD usage: ./configure ... -feature-wasm-simd128 Enabling this feature makes Qt add the -msimd128 flag to the compile options, which enables SIMD instruction usage for the compiler. (This should not be confused with the previously added SSE SIMD support, which uses Emscripten's support for translating SSE SIMD to WASM SIMD) Change-Id: I84a36ccef8abf9199c304d68ce371c6b1747b832 Reviewed-by: David Skoland <david.skoland@qt.io> Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
Diffstat (limited to 'configure.cmake')
-rw-r--r--configure.cmake12
1 files changed, 12 insertions, 0 deletions
diff --git a/configure.cmake b/configure.cmake
index 91a3df5f33..eaa642f471 100644
--- a/configure.cmake
+++ b/configure.cmake
@@ -928,6 +928,14 @@ qt_feature("arm_crypto" PRIVATE
)
qt_feature_definition("arm_crypto" "QT_COMPILER_SUPPORTS_AES" VALUE "1")
qt_feature_config("arm_crypto" QMAKE_PRIVATE_CONFIG)
+
+qt_feature("wasm_simd128" PRIVATE
+ LABEL "WebAssembly SIMD128"
+ AUTODETECT OFF
+)
+qt_feature_definition("wasm_simd128" "QT_COMPILER_SUPPORTS_WASM_SIMD128" VALUE "1")
+qt_feature_config("wasm_simd128" QMAKE_PRIVATE_CONFIG)
+
qt_feature("posix_fallocate" PRIVATE
LABEL "POSIX fallocate()"
CONDITION TEST_posix_fallocate
@@ -1155,6 +1163,10 @@ qt_configure_add_summary_entry(ARGS "relocatable")
qt_configure_add_summary_entry(ARGS "precompile_header")
qt_configure_add_summary_entry(ARGS "ltcg")
qt_configure_add_summary_entry(ARGS "intelcet")
+qt_configure_add_summary_entry(
+ ARGS "wasm_simd128"
+ CONDITION ( TEST_architecture_arch STREQUAL wasm )
+)
qt_configure_add_summary_section(NAME "Target compiler supports")
qt_configure_add_summary_entry(
TYPE "featureList"