diff --git a/CMakeLists.txt b/CMakeLists.txt index 6b3c562a..bafc59e5 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -110,7 +110,7 @@ if(LUAU_BUILD_WEB) target_link_libraries(Luau.Web PRIVATE Luau.Compiler Luau.VM) # declare exported functions to emscripten - target_link_options(Luau.Web PRIVATE -sEXPORTED_FUNCTIONS=['_executeScript'] -sEXPORTED_RUNTIME_METHODS=['ccall','cwrap'] -fexceptions) + target_link_options(Luau.Web PRIVATE -sEXPORTED_FUNCTIONS=['_executeScript'] -sEXPORTED_RUNTIME_METHODS=['ccall','cwrap']) # add -fexceptions for emscripten to allow exceptions to be caught in C++ target_link_options(Luau.Web PRIVATE -fexceptions)