File tree Expand file tree Collapse file tree 2 files changed +8
-3
lines changed Expand file tree Collapse file tree 2 files changed +8
-3
lines changed Original file line number Diff line number Diff line change 11# Copyright (c) 2020-2025 Intel Corporation
2+ # Copyright (c) 2025 UXL Foundation Contributors
23#
34# Licensed under the Apache License, Version 2.0 (the "License");
45# you may not use this file except in compliance with the License.
1415
1516if (EMSCRIPTEN)
1617 set (TBB_EMSCRIPTEN 1)
17- set (TBB_COMMON_COMPILE_FLAGS ${TBB_COMMON_COMPILE_FLAGS} -fexceptions)
18- set (TBB_TEST_LINK_FLAGS ${TBB_COMMON_LINK_FLAGS} -fexceptions -sINITIAL_MEMORY=65536000 -sALLOW_MEMORY_GROWTH=1 -sMALLOC=mimalloc -sEXIT_RUNTIME=1)
1918 if (NOT EMSCRIPTEN_WITHOUT_PTHREAD)
2019 set_property (TARGET Threads::Threads PROPERTY INTERFACE_LINK_LIBRARIES "-pthread" )
2120 endif ()
2221 set (TBB_EMSCRIPTEN_STACK_SIZE 65536)
2322 set (TBB_LIB_COMPILE_FLAGS -D__TBB_EMSCRIPTEN_STACK_SIZE=${TBB_EMSCRIPTEN_STACK_SIZE} )
24- set (TBB_TEST_LINK_FLAGS ${TBB_TEST_LINK_FLAGS} -sTOTAL_STACK=${TBB_EMSCRIPTEN_STACK_SIZE} )
23+ set (TBB_TEST_COMPILE_FLAGS ${TBB_TEST_COMPILE_FLAGS} -fexceptions)
24+ set (TBB_TEST_LINK_FLAGS ${TBB_TEST_LINK_FLAGS} -fexceptions -sINITIAL_MEMORY=65536000 -sALLOW_MEMORY_GROWTH=1 -sMALLOC=mimalloc -sEXIT_RUNTIME=1 -sTOTAL_STACK=${TBB_EMSCRIPTEN_STACK_SIZE} )
2525 unset (TBB_EMSCRIPTEN_STACK_SIZE)
2626endif ()
2727
Original file line number Diff line number Diff line change 11# Copyright (c) 2020-2025 Intel Corporation
2+ # Copyright (c) 2025 UXL Foundation Contributors
23#
34# Licensed under the Apache License, Version 2.0 (the "License");
45# you may not use this file except in compliance with the License.
@@ -53,6 +54,10 @@ if (WIN32)
5354 set_target_properties (tbb PROPERTIES OUTPUT_NAME "tbb${TBB_BINARY_VERSION} " )
5455endif ()
5556
57+ if (EMSCRIPTEN)
58+ set (TBB_LIB_COMPILE_FLAGS ${TBB_LIB_COMPILE_FLAGS} -fexceptions)
59+ endif ()
60+
5661# TODO: Add statistics.cpp
5762
5863target_compile_definitions (
You can’t perform that action at this time.
0 commit comments