We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b32fe28 commit 5b619caCopy full SHA for 5b619ca
src/bin/CMakeLists.txt
@@ -19,10 +19,17 @@ if (WITH_STACKTRACE AND APPLE AND CMAKE_CXX_COMPILER_ID MATCHES Clang)
19
# On macOS we have to call dsymutil to create the dSYM bundle so that the
20
# stacktrace can find debugging information corresponding to the lpython
21
# 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}")
29
add_custom_command(
30
TARGET lpython
31
POST_BUILD
- COMMAND dsymutil lpython
32
+ COMMAND ${DSYMUTIL} lpython
33
)
34
if (WITH_DWARFDUMP)
35
0 commit comments