From 54912a63ab21878b9cd413175ad69e518a40b76d Mon Sep 17 00:00:00 2001 From: Syping Date: Thu, 5 Jan 2023 15:46:57 +0100 Subject: [PATCH] Emscripten: set ALLOW_MEMORY_GROWTH to 1 --- CMakeLists.txt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index db6cb3e..7693073 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,6 +1,6 @@ #[[************************************************************************** * libragephoto RAGE Photo Parser -* Copyright (C) 2021-2022 Syping +* Copyright (C) 2021-2023 Syping * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: @@ -136,6 +136,7 @@ if (EMSCRIPTEN) "SHELL:-O3" "SHELL:--no-entry" "SHELL:-s WASM=1" + "SHELL:-s ALLOW_MEMORY_GROWTH=1" "SHELL:-s EXPORTED_FUNCTIONS=_free" "SHELL:-s EXPORTED_RUNTIME_METHODS=ccall,cwrap" )