[clang] 002dd47 - [clang] Fix typos in the default logic for CLANG_DEFAULT_UNWINDLIB
Martin Storsjö via cfe-commits
cfe-commits at lists.llvm.org
Fri Mar 5 23:09:58 PST 2021
Author: Martin Storsjö
Date: 2021-03-06T08:50:46+02:00
New Revision: 002dd47bdd674fad8186650f07458b1e062545df
URL: https://github.com/llvm/llvm-project/commit/002dd47bdd674fad8186650f07458b1e062545df
DIFF: https://github.com/llvm/llvm-project/commit/002dd47bdd674fad8186650f07458b1e062545df.diff
LOG: [clang] Fix typos in the default logic for CLANG_DEFAULT_UNWINDLIB
CLANG_DEFAULT_RTLIB had a typo, and libunwind isn't a valid
option for it.
This keeps the actual behaviour from before, defaulting to none if
using compiler-rt as rtlib.
Differential Revision: https://reviews.llvm.org/D98022
Added:
Modified:
clang/CMakeLists.txt
Removed:
################################################################################
diff --git a/clang/CMakeLists.txt b/clang/CMakeLists.txt
index 7e1e58fdc138..f0fa61a0c3f7 100644
--- a/clang/CMakeLists.txt
+++ b/clang/CMakeLists.txt
@@ -262,7 +262,7 @@ set(CLANG_DEFAULT_UNWINDLIB "" CACHE STRING
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 "compiler-rt")
set (CLANG_DEFAULT_UNWINDLIB "none" CACHE STRING "" FORCE)
endif()
endif()
More information about the cfe-commits
mailing list