Introduce hsdump development tool for producing information during compilation.

This tool is intended to assist Hyperscan developers with development and
debugging by providing insights into the generated bytecode.
This commit is contained in:
Alex Coyte
2017-11-20 13:25:38 +11:00
committed by Xiang Wang
parent 090632f61a
commit fae8d21127
2 changed files with 594 additions and 0 deletions

View File

@@ -0,0 +1,19 @@
# dump support is required
if (NOT DUMP_SUPPORT)
return()
endif ()
if (WIN32)
return()
endif ()
include_directories(${PROJECT_SOURCE_DIR})
include_directories(${PROJECT_SOURCE_DIR}/util)
# only set these after all tests are done
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${EXTRA_C_FLAGS}")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${EXTRA_CXX_FLAGS}")
add_executable(hsdump main.cpp)
target_link_libraries(hsdump hs expressionutil crosscompileutil)