Skip to content

Commit 002dd47

Browse files
committed
[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
1 parent 2d922de commit 002dd47

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

clang/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -262,7 +262,7 @@ set(CLANG_DEFAULT_UNWINDLIB "" CACHE STRING
262262
if (CLANG_DEFAULT_UNWINDLIB STREQUAL "")
263263
if (CLANG_DEFAULT_RTLIB STREQUAL "libgcc")
264264
set (CLANG_DEFAULT_UNWINDLIB "libgcc" CACHE STRING "" FORCE)
265-
elseif (CLANG_DEFAULT_RTLIBS STREQUAL "libunwind")
265+
elseif (CLANG_DEFAULT_RTLIB STREQUAL "compiler-rt")
266266
set (CLANG_DEFAULT_UNWINDLIB "none" CACHE STRING "" FORCE)
267267
endif()
268268
endif()

0 commit comments

Comments
 (0)