<commit_before>################################################################################
#
# T:N.U.N. Emscripten toolchain file.
#
# Copyright (c) 2019. <NAME>. All rights reserved.
#
################################################################################

include( "${CMAKE_CURRENT_LIST_DIR}/clang.cmake" )

set( TNUN_compiler_debug_symbols -g4 "SHELL:-s DEMANGLE_SUPPORT=1" )
set( TNUN_linker_debug_symbols   -g4 "SHELL:-s DEMANGLE_SUPPORT=1" )

set( TNUN_linker_exceptions_on  "SHELL:-s DISABLE_EXCEPTION_CATCHING=0" )
set( TNUN_linker_exceptions_off "SHELL:-s DISABLE_EXCEPTION_CATCHING=1" )

list( APPEND TNUN_compiler_exceptions_on  ${TNUN_linker_exceptions_on}  )
list( APPEND TNUN_compiler_exceptions_off ${TNUN_linker_exceptions_off} )

list( APPEND TNUN_linker_LTO "SHELL:--llvm-lto 3" "SHELL:--llvm-opts 3")

set( TNUN_compiler_assertions "SHELL:-s ASSERTIONS=2" "SHELL:-s GL_ASSERTIONS=1" "SHELL:-s SAFE_HEAP=1" )
set( TNUN_linker_assertions ${TNUN_compiler_assertions} )

set( CMAKE_EXECUTABLE_SUFFIX ".html" )

# depending on ABORTING_MALLOC and ALLOW_MEMORY_GROWTH emscripten settings
# see: https://github.com/emscripten-core/emscripten/blob/master/src/settings.js

set( TNUN_MALLOC_OVERCOMMIT_POLICY Partial )<commit_msg>always enable memory growth in emscripten<commit_after>################################################################################
#
# T:N.U.N. Emscripten toolchain file.
#
# Copyright (c) 2019. <NAME>. All rights reserved.
#
################################################################################

include( "${CMAKE_CURRENT_LIST_DIR}/clang.cmake" )

set( TNUN_compiler_debug_symbols -g4 "SHELL:-s DEMANGLE_SUPPORT=1" )
set( TNUN_linker_debug_symbols   -g4 "SHELL:-s DEMANGLE_SUPPORT=1" )

set( TNUN_linker_exceptions_on  "SHELL:-s DISABLE_EXCEPTION_CATCHING=0" )
set( TNUN_linker_exceptions_off "SHELL:-s DISABLE_EXCEPTION_CATCHING=1" )

list( APPEND TNUN_compiler_exceptions_on  ${TNUN_linker_exceptions_on}  )
list( APPEND TNUN_compiler_exceptions_off ${TNUN_linker_exceptions_off} )

list( APPEND TNUN_linker_LTO "SHELL:--llvm-lto 3" "SHELL:--llvm-opts 3")

set( TNUN_compiler_assertions "SHELL:-s ASSERTIONS=2" "SHELL:-s GL_ASSERTIONS=1" "SHELL:-s SAFE_HEAP=1" )
set( TNUN_linker_assertions ${TNUN_compiler_assertions} )

set( CMAKE_EXECUTABLE_SUFFIX ".html" )

# depending on ABORTING_MALLOC and ALLOW_MEMORY_GROWTH emscripten settings
# see: https://github.com/emscripten-core/emscripten/blob/master/src/settings.js

set( TNUN_MALLOC_OVERCOMMIT_POLICY Partial )

set( enable_memory_growth "SHELL:-s ALLOW_MEMORY_GROWTH=1" )

add_compile_options( ${enable_memory_growth} )
add_link_options( ${enable_memory_growth} )
{'fraction_non_alphanumeric': 0.21970260223048327, 'fraction_numerical': 0.011524163568773234, 'mean_word_length': 7.910596026490066, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '787554', 'n_tokens_mistral': 1058, 'n_tokens_neox': 984, 'n_words': 159}