build: Update emscripten to the latest version

This commit is contained in:
WerWolv
2025-05-10 14:24:07 +02:00
parent 51a01c860b
commit f19478374f
3 changed files with 6 additions and 2 deletions

View File

@@ -31,7 +31,7 @@ set(CMAKE_MODULE_PATH "${IMHEX_BASE_FOLDER}/cmake/modules")
include("${IMHEX_BASE_FOLDER}/cmake/ide_helpers.cmake") include("${IMHEX_BASE_FOLDER}/cmake/ide_helpers.cmake")
# Basic compiler and cmake configurations # Basic compiler and cmake configurations
set(CMAKE_CXX_STANDARD 26) set(CMAKE_CXX_STANDARD 23)
set(CMAKE_CXX_SCAN_FOR_MODULES ${IMHEX_ENABLE_CXX_MODULES}) set(CMAKE_CXX_SCAN_FOR_MODULES ${IMHEX_ENABLE_CXX_MODULES})
set(CMAKE_INCLUDE_DIRECTORIES_BEFORE ON) set(CMAKE_INCLUDE_DIRECTORIES_BEFORE ON)
set(CMAKE_EXPORT_COMPILE_COMMANDS ON) set(CMAKE_EXPORT_COMPILE_COMMANDS ON)

2
dist/web/Dockerfile vendored
View File

@@ -1,4 +1,4 @@
FROM emscripten/emsdk:3.1.51 AS build FROM emscripten/emsdk:4.0.8 AS build
# Used to invalidate layer cache but not mount cache # Used to invalidate layer cache but not mount cache
# See https://github.com/moby/moby/issues/41715#issuecomment-733976493 # See https://github.com/moby/moby/issues/41715#issuecomment-733976493

View File

@@ -21,6 +21,10 @@
#include <utility> #include <utility>
#include <romfs/romfs.hpp> #include <romfs/romfs.hpp>
#if defined(OS_WEB)
#include <emscripten.h>
#endif
namespace hex::plugin::builtin { namespace hex::plugin::builtin {
using namespace wolv::literals; using namespace wolv::literals;