File tree Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -73,6 +73,7 @@ make_source_list(SOURCES_PROFILER
73
73
lj_profile_timer.c
74
74
lj_symtab.c
75
75
lj_sysprof.c
76
+ ${LIBUNWIND_INCLUDE_DIR}
76
77
)
77
78
78
79
# Lua standard library + extensions by LuaJIT.
@@ -278,16 +279,17 @@ target_include_directories(core_shared PRIVATE ${CMAKE_CURRENT_BINARY_DIR})
278
279
add_dependencies (core_static buildvm_output )
279
280
add_dependencies (core_shared buildvm_output )
280
281
282
+ if (${LIBUNWIND_FOUND} )
283
+ target_link_libraries (core_static PRIVATE ${LIBUNWIND_LIBRARIES} )
284
+ target_link_libraries (core_shared PRIVATE ${LIBUNWIND_LIBRARIES} )
285
+ endif ()
286
+
281
287
# --- Generate output ----------------------------------------------------------
282
288
283
289
# Compiling and linking library binaries (static, shared).
284
290
285
291
list (APPEND TARGET_LIBS m )
286
292
287
- if (NOT LUAJIT_DISABLE_SYSPROF )
288
- list (APPEND TARGET_LIBS ${LIBUNWIND_LIBRARIES} )
289
- endif ()
290
-
291
293
set (LIB_OBJECTS_STATIC
292
294
$< TARGET_OBJECTS:vm_static>
293
295
$< TARGET_OBJECTS:core_static>
You can’t perform that action at this time.
0 commit comments