Skip to content

Commit 2d27931

Browse files
committed
DEBUG enable
1 parent c3469b8 commit 2d27931

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

cmake/BuildLuaJIT.cmake

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ macro(build_luajit LJ_VERSION)
1616
set(LUAJIT_BASEDIR ${PROJECT_SOURCE_DIR}/patches/)
1717

1818
if (CMAKE_BUILD_TYPE STREQUAL "Debug")
19-
AppendFlags(CFLAGS ${CMAKE_C_FLAGS_DEBUG})
19+
AppendFlags(CFLAGS "${CMAKE_C_FLAGS_DEBUG} -ggdb3")
2020
AppendFlags(LDFLAGS ${CMAKE_C_FLAGS_DEBUG})
2121
endif()
2222

@@ -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
)

0 commit comments

Comments
 (0)