Skip to content

Commit

Permalink
build: add CMake configuration for evread module
Browse files Browse the repository at this point in the history
This patch adds necessary cmake configurations for the
<evread.lua> module, so it can be used later to implement
human-readable error reporting in profile parsers.

Part of #9217

NO_DOC=LuaJIT submodule
NO_TEST=covered by the LuaJIT tests
NO_CHANGELOG=build
  • Loading branch information
mkokryashkin authored and ylobankov committed Mar 26, 2024
1 parent 6980007 commit e01fe8f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/CMakeLists.txt
Expand Up @@ -143,6 +143,7 @@ lua_source(lua_sources ${LUAJIT_SOURCE_ROOT}/tools/sysprof.lua sysprof_lua)
lua_source(lua_sources ${LUAJIT_SOURCE_ROOT}/tools/sysprof/parse.lua sysprof_parse_lua)
lua_source(lua_sources ${LUAJIT_SOURCE_ROOT}/tools/utils/avl.lua utils_avl_lua)
lua_source(lua_sources ${LUAJIT_SOURCE_ROOT}/tools/utils/bufread.lua utils_bufread_lua)
lua_source(lua_sources ${LUAJIT_SOURCE_ROOT}/tools/utils/evread.lua utils_evread_lua)
lua_source(lua_sources ${LUAJIT_SOURCE_ROOT}/tools/utils/symtab.lua utils_symtab_lua)

add_custom_target(generate_lua_sources
Expand Down
2 changes: 2 additions & 0 deletions src/lua/init.c
Expand Up @@ -161,6 +161,7 @@ extern char minifio_lua[],
/* tools.* libraries. */
utils_avl_lua[],
utils_bufread_lua[],
utils_evread_lua[],
utils_symtab_lua[],
memprof_parse_lua[],
memprof_process_lua[],
Expand Down Expand Up @@ -229,6 +230,7 @@ static const char *lua_modules[] = {
"utils.avl", utils_avl_lua,
"utils.bufread", utils_bufread_lua,
"utils.symtab", utils_symtab_lua,
"utils.evread", utils_evread_lua,
"memprof.parse", memprof_parse_lua,
"memprof.process", memprof_process_lua,
"memprof.humanize", memprof_humanize_lua,
Expand Down

0 comments on commit e01fe8f

Please sign in to comment.