0
0
mirror of https://github.com/llvm/llvm-project.git synced 2025-04-21 13:36:50 +00:00

[flang-rt] Enable -funwind-tables so that backtrace works. ()

`backtrace` will not show anything unless it can unwind from
Fortran runtime, so it is useful to have this ability even
in the release build.
This commit is contained in:
Slava Zakharin 2025-03-11 16:14:53 -07:00 committed by GitHub
parent 76d5a79bed
commit d547005f6c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -198,7 +198,7 @@ function (add_flangrt_library name)
# Use compiler-specific options to disable exceptions and RTTI.
if (LLVM_COMPILER_IS_GCC_COMPATIBLE)
target_compile_options(${tgtname} PRIVATE
$<$<COMPILE_LANGUAGE:CXX>:-fno-exceptions -fno-rtti -fno-unwind-tables -fno-asynchronous-unwind-tables>
$<$<COMPILE_LANGUAGE:CXX>:-fno-exceptions -fno-rtti -funwind-tables -fno-asynchronous-unwind-tables>
)
elseif (MSVC)
target_compile_options(${tgtname} PRIVATE