summaryrefslogtreecommitdiffstats
path: root/configure.cmake
diff options
context:
space:
mode:
authorMartin Negyokru <negyokru@inf.u-szeged.hu>2023-03-31 14:37:07 +0200
committerMartin Negyokru <negyokru@inf.u-szeged.hu>2023-04-17 14:36:53 +0200
commit2c80ff478bcc3290cafd970c5fd3412f2887fc91 (patch)
tree6e0e8105bd2a56321d8d5522f7b49254f6517845 /configure.cmake
parenta6a97f23bcebfc7c3319607b612be3b0d59ea46f (diff)
Add check for Nodejs binary version
Webengine fails to build with 32bit Nodejs. It crashes on devtools-frontend/src/scripts/build/compress_files.js. Add configure time check for node binary. Task-number: QTBUG-111852 Change-Id: I80844e36d5ae4621e2dae6fe61de883580b56a57 Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
Diffstat (limited to 'configure.cmake')
-rw-r--r--configure.cmake7
1 files changed, 7 insertions, 0 deletions
diff --git a/configure.cmake b/configure.cmake
index c5e561b12..57d6c805c 100644
--- a/configure.cmake
+++ b/configure.cmake
@@ -497,6 +497,13 @@ add_check_for_support(
MESSAGE "node.js version 12 or later is required."
)
add_check_for_support(
+ MODULES QtWebEngine
+ CONDITION NOT (Nodejs_ARCH STREQUAL ia32) AND
+ NOT (Nodejs_ARCH STREQUAL x86) AND
+ NOT (Nodejs_ARCH STREQUAL arm)
+ MESSAGE "32bit version of Nodejs is not supported."
+)
+add_check_for_support(
MODULES QtWebEngine QtPdf
CONDITION Python3_EXECUTABLE
MESSAGE "Python version 3.6 or later is required."