RTSLIBS should instread be RTLIB
if (CLANG_DEFAULT_UNWINDLIB STREQUAL "")
if (CLANG_DEFAULT_RTLIB STREQUAL "libgcc")
set (CLANG_DEFAULT_UNWINDLIB "libgcc" CACHE STRING "" FORCE)
- elseif (CLANG_DEFAULT_RTLIBS STREQUAL "libunwind")
+ elseif (CLANG_DEFAULT_RTLIB STREQUAL "libunwind")
set (CLANG_DEFAULT_UNWINDLIB "none" CACHE STRING "" FORCE)
endif()
endif()Since CLANG_DEFAULT_RTLIBS should be CLANG_DEFAULT_RTLIB the line
set (CLANG_DEFAULT_UNWINDLIB "none" CACHE STRING "" FORCE)
will never be reached.
This addresses https://bugs.llvm.org/show_bug.cgi?id=48291