Skip to content
Snippets Groups Projects
Commit 7f2c3696 authored by Jaswant Panchumarti (Kitware)'s avatar Jaswant Panchumarti (Kitware)
Browse files

ci: bump node to 23.8.0

parent eaf11133
No related branches found
No related tags found
No related merge requests found
cmake_minimum_required(VERSION 3.12)
set(node_version "22.0.0")
set(node_url "https://vtk.org/files/support")
set(node_version "23.8.0")
set(node_baseurl "https://vtk.org/files/support")
# Uncomment to test newer releases before mirroring at vtk.org
# set(node_baseurl "https://nodejs.org/download/release/v${node_version}")
if ("$ENV{CMAKE_CONFIGURATION}" MATCHES "windows")
set(node_platform "win-x64")
set(node_ext "zip")
set(node_hash "32d639b47d4c0a651ff8f8d7d41a454168a3d4045be37985f9a810cf8cef6174")
set(node_hash "9e03646224fcf44fa0b594df5d012da9cb5b137c52f36f33b11def3319cd132c")
elseif ("$ENV{CMAKE_CONFIGURATION}" MATCHES "linux")
set(node_platform "linux-x64")
set(node_ext "tar.gz")
set(node_hash "74bb0f3a80307c529421c3ed84517b8f543867709f41e53cd73df99e6442af4d")
set(node_hash "f6d98bbdd0a4078c1e422a6a1d8bf07ad693a4dd793bb5772990456faeca6e95")
else ()
message(FATAL_ERROR
"Unknown platform for node $ENV{CMAKE_CONFIGURATION}")
......@@ -19,7 +21,7 @@ set(node_file "node-v${node_version}-${node_platform}.${node_ext}")
# Download the file.
file(DOWNLOAD
"${node_url}/${node_file}"
"${node_baseurl}/${node_file}"
".gitlab/${node_file}"
STATUS download_status
EXPECTED_HASH "SHA256=${node_hash}")
......
......@@ -39,9 +39,8 @@ if (CMAKE_SYSTEM_NAME STREQUAL "Emscripten")
set(VTK_REQUIRED_MODULE_LINKER_FLAGS "${VTK_REQUIRED_MODULE_LINKER_FLAGS} -pthread")
endif ()
if (VTK_WEBASSEMBLY_64_BIT)
# Remove after wasm64 is no longer experimental in clang.
set(VTK_REQUIRED_CXX_FLAGS "${VTK_REQUIRED_CXX_FLAGS} -sMEMORY64=1 -Wno-experimental")
set(VTK_REQUIRED_C_FLAGS "${VTK_REQUIRED_C_FLAGS} -sMEMORY64=1 -Wno-experimental")
set(VTK_REQUIRED_CXX_FLAGS "${VTK_REQUIRED_CXX_FLAGS} -sMEMORY64=1")
set(VTK_REQUIRED_C_FLAGS "${VTK_REQUIRED_C_FLAGS} -sMEMORY64=1")
set(VTK_REQUIRED_EXE_LINKER_FLAGS "${VTK_REQUIRED_EXE_LINKER_FLAGS} -sMEMORY64=1")
set(VTK_REQUIRED_SHARED_LINKER_FLAGS "${VTK_REQUIRED_SHARED_LINKER_FLAGS} -sMEMORY64=1")
set(VTK_REQUIRED_MODULE_LINKER_FLAGS "${VTK_REQUIRED_MODULE_LINKER_FLAGS} -sMEMORY64=1")
......
set(vtk_nodejs_min_version "22.0.0")
set(vtk_nodejs_min_version "23.8.0")
find_package(NodeJS "${vtk_nodejs_min_version}" REQUIRED)
if (VTK_WEBASSEMBLY_64_BIT)
set(_vtk_node_args "--experimental-wasm-memory64")
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment