Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 8 additions & 1 deletion src/bin/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,17 @@ if (WITH_STACKTRACE AND APPLE AND CMAKE_CXX_COMPILER_ID MATCHES Clang)
# On macOS we have to call dsymutil to create the dSYM bundle so that the
# stacktrace can find debugging information corresponding to the lpython
# binary
find_program(DSYMUTIL NAMES dsymutil PATHS /usr/bin NO_DEFAULT_PATH)

if(NOT DSYMUTIL)
find_program(DSYMUTIL NAMES dsymutil)
endif()

message("DSYMUTIL: ${DSYMUTIL}")
add_custom_command(
TARGET lpython
POST_BUILD
COMMAND dsymutil lpython
COMMAND ${DSYMUTIL} lpython
)
if (WITH_DWARFDUMP)
add_custom_command(
Expand Down
Loading