# HG changeset patch # User frd # Date 1461433950 14400 # Node ID 8f5db41471f4fba77377d424d77c80c247066ae6 # Parent b76b7372a2a6c234213d1e42b74fcbe29c2dd7e4 Add a necessary flag to emscripten diff -r b76b7372a2a6 -r 8f5db41471f4 project_files/hwc/CMakeLists.txt --- a/project_files/hwc/CMakeLists.txt Sat Apr 23 13:48:30 2016 -0400 +++ b/project_files/hwc/CMakeLists.txt Sat Apr 23 13:52:30 2016 -0400 @@ -79,6 +79,10 @@ add_custom_target(engine_c DEPENDS ${engine_sources}) +if(BUILD_ENGINE_JS) + add_flag_append(CMAKE_C_FLAGS "-s ABORTING_MALLOC=0") +endif() + #compile the c files add_definitions(-DPAS2C) add_definitions(-Werror=incompatible-pointer-types)