forked from lcompilers/lpython
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add a stacktrace printing functionality
- Loading branch information
Showing
9 changed files
with
574 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
find_path(BFD_INCLUDE_DIR bfd.h) | ||
find_library(BFD_LIBRARY bfd) | ||
#find_library(IBERTY_LIBRARY iberty) | ||
#find_library(Z_LIBRARY z) | ||
#find_library(DL_LIBRARY dl) | ||
|
||
include(FindPackageHandleStandardArgs) | ||
find_package_handle_standard_args(BFD DEFAULT_MSG BFD_INCLUDE_DIR BFD_LIBRARY) | ||
|
||
add_library(p::bfd INTERFACE IMPORTED) | ||
set_property(TARGET p::bfd PROPERTY INTERFACE_INCLUDE_DIRECTORIES | ||
${BFD_INCLUDE_DIR}) | ||
set_property(TARGET p::bfd PROPERTY INTERFACE_LINK_LIBRARIES | ||
${BFD_LIBRARY}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
find_path(EXECINFO_INCLUDE_DIR execinfo.h) | ||
|
||
include(FindPackageHandleStandardArgs) | ||
if (CMAKE_SYSTEM_NAME MATCHES "BSD") | ||
find_library(EXECINFO_LIBRARY execinfo) | ||
find_package_handle_standard_args(EXECINFO DEFAULT_MSG | ||
EXECINFO_LIBRARY EXECINFO_INCLUDE_DIR) | ||
else () | ||
find_package_handle_standard_args(EXECINFO DEFAULT_MSG | ||
EXECINFO_INCLUDE_DIR) | ||
endif () | ||
|
||
add_library(p::execinfo INTERFACE IMPORTED) | ||
set_property(TARGET p::execinfo PROPERTY INTERFACE_INCLUDE_DIRECTORIES | ||
${EXECINFO_INCLUDE_DIR}) | ||
if (CMAKE_SYSTEM_NAME MATCHES "BSD") | ||
set_property(TARGET p::execinfo PROPERTY INTERFACE_LINK_LIBRARIES | ||
${EXECINFO_LIBRARY}) | ||
endif () |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
find_path(LINK_INCLUDE_DIR link.h) | ||
|
||
include(FindPackageHandleStandardArgs) | ||
find_package_handle_standard_args(LINKH DEFAULT_MSG LINK_INCLUDE_DIR) | ||
|
||
add_library(p::link INTERFACE IMPORTED) | ||
set_property(TARGET p::link PROPERTY INTERFACE_INCLUDE_DIRECTORIES | ||
${LINK_INCLUDE_DIR}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.