[flang-commits] [flang] Backtrace support for flang (PR #118179)
Tom Eccles via flang-commits
flang-commits at lists.llvm.org
Fri Jan 31 11:17:54 PST 2025
tblah wrote:
Hi @brad0, thanks for looking into this.
I don't have a BSD machine to test but I would guess something like the following would work in `flang/runtime/CMakeLists.txt`
```
set(linked_libraries
FortranDecimal
)
if(CMAKE_SYSTEM_NAME MATCHES ".+BSD")
list(APPEND linked_libraries "libexecinfo")
endif
# For each usage of add_flang_library use the new list instead of just FortranDecimal:
add_flang_library(FortranRuntime
${sources}
LINK_LIBS
${link_libraries}
)
```
You can find CMake's documentation here (e.g. for `list(APPEND )`) https://cmake.org/cmake/help/latest/command/list.html#append
https://github.com/llvm/llvm-project/pull/118179
More information about the flang-commits
mailing list