File tree Expand file tree Collapse file tree 1 file changed +4
-0
lines changed
Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -27,6 +27,7 @@ macro(build_luajit LJ_VERSION)
2727 if (ENABLE_ASAN)
2828 string (JOIN " " ASAN_FLAGS
2929 -fsanitize=address
30+ -fno-omit-frame-pointer
3031 -DLUAJIT_USE_ASAN
3132 -DLUAJIT_USE_SYSMALLOC=1
3233 )
@@ -95,6 +96,8 @@ macro(build_luajit LJ_VERSION)
9596 AppendFlags (LDFLAGS -lstdc++ )
9697 endif ()
9798
99+ AppendFlags (CCDEBUG -g -ggdb3 )
100+
98101 include (ExternalProject )
99102
100103 set (LUA_LIBRARY ${LJ_SOURCE_DIR} /src/libluajit.a)
@@ -118,6 +121,7 @@ macro(build_luajit LJ_VERSION)
118121 patch -p1 -i ${LUAJIT_BASEDIR} /luajit-dmalloc-asan_instr-v2.1.patch
119122 CONFIGURE_COMMAND ""
120123 BUILD_COMMAND cd <SOURCE_DIR > && make -j CC=${CMAKE_C_COMPILER}
124+ CCDEBUG=${CCDEBUG}
121125 CFLAGS=${CFLAGS}
122126 LDFLAGS=${LDFLAGS}
123127 HOST_CFLAGS=-fno-sanitize=undefined
You can’t perform that action at this time.
0 commit comments