[PATCH] D97182: [clang] fix cmake wrong variable name from RTLIBS to RTLIB
Philip Lassen via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Sun Feb 21 23:56:57 PST 2021
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()
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D97182.325377.patch
Type: text/x-patch
Size: 511 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20210222/563424f5/attachment.bin>
More information about the llvm-commits
mailing list