Skip to content

Commit 701de8c

Browse files
committed
build: introduce LUAJIT_ENABLE_CHECKHOOK option
Originally there is nether a special option nor a variable to configure check for instrunction/line hooks for compiled code via the build system being used. We finally decided to use this feature in Tarantool, so for convenient managing LUAJIT_ENABLE_CHECKHOOK option is added to the root project CMakeLists.txt. Needed for tarantool/tarantool#7762
1 parent b9220c5 commit 701de8c

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

CMakeLists.txt

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -180,6 +180,11 @@ if(LUAJIT_ENABLE_GC64)
180180
AppendFlags(TARGET_C_FLAGS -DLUAJIT_ENABLE_GC64)
181181
endif()
182182

183+
option(LUAJIT_ENABLE_CHECKHOOK "Check instruction/line hooks for compiled code" OFF)
184+
if(LUAJIT_ENABLE_CHECKHOOK)
185+
AppendFlags(TARGET_C_FLAGS -DLUAJIT_ENABLE_CHECKHOOK)
186+
endif()
187+
183188
# Disable memory profiler.
184189
option(LUAJIT_DISABLE_MEMPROF "LuaJIT memory profiler support" OFF)
185190
if(LUAJIT_DISABLE_MEMPROF)

0 commit comments

Comments
 (0)