Skip to content

Commit 5b619ca

Browse files
committed
Fixed DSYM for mac
1 parent b32fe28 commit 5b619ca

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

src/bin/CMakeLists.txt

+8-1
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,17 @@ if (WITH_STACKTRACE AND APPLE AND CMAKE_CXX_COMPILER_ID MATCHES Clang)
1919
# On macOS we have to call dsymutil to create the dSYM bundle so that the
2020
# stacktrace can find debugging information corresponding to the lpython
2121
# binary
22+
find_program(DSYMUTIL NAMES dsymutil PATHS /usr/bin NO_DEFAULT_PATH)
23+
24+
if(NOT DSYMUTIL)
25+
find_program(DSYMUTIL NAMES dsymutil)
26+
endif()
27+
28+
message("DSYMUTIL: ${DSYMUTIL}")
2229
add_custom_command(
2330
TARGET lpython
2431
POST_BUILD
25-
COMMAND dsymutil lpython
32+
COMMAND ${DSYMUTIL} lpython
2633
)
2734
if (WITH_DWARFDUMP)
2835
add_custom_command(

0 commit comments

Comments
 (0)