diff --git a/flang-rt/cmake/modules/AddFlangRT.cmake b/flang-rt/cmake/modules/AddFlangRT.cmake index c9a180e16163a..2292732daba6e 100644 --- a/flang-rt/cmake/modules/AddFlangRT.cmake +++ b/flang-rt/cmake/modules/AddFlangRT.cmake @@ -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 - $<$:-fno-exceptions -fno-rtti -fno-unwind-tables -fno-asynchronous-unwind-tables> + $<$:-fno-exceptions -fno-rtti -funwind-tables -fno-asynchronous-unwind-tables> ) elseif (MSVC) target_compile_options(${tgtname} PRIVATE