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. (#130848)
`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:
parent
76d5a79bed
commit
d547005f6c
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user