philass created this revision.
philass added a reviewer: chandlerc.
Herald added a subscriber: mgorny.
philass requested review of this revision.
Herald added a project: clang.
Herald added a subscriber: cfe-commits.
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`
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D97182
Files:
clang/CMakeLists.txt
Index: clang/CMakeLists.txt
===================================================================
--- clang/CMakeLists.txt
+++ clang/CMakeLists.txt
@@ -262,7 +262,7 @@
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()
Index: clang/CMakeLists.txt
===================================================================
--- clang/CMakeLists.txt
+++ clang/CMakeLists.txt
@@ -262,7 +262,7 @@
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()
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits