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)