[libcxx-commits] [PATCH] D126466: [libunwind][CMake] Fix name of LIBUNWIND_SUPPORTS_NODEFAULTLIBS_FLAG

Pavel Samolysov via Phabricator via libcxx-commits libcxx-commits at lists.llvm.org
Thu May 26 07:16:13 PDT 2022


psamolysov created this revision.
psamolysov added reviewers: Ericson2314, phosek, mstorsjo.
psamolysov added a project: libunwind.
Herald added subscribers: libcxx-commits, mgorny.
Herald added a reviewer: libunwind.
Herald added a project: All.
psamolysov requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.

The CMake variable LIBUNWIND_SUPPORTS_NODEFAULTLIBS_FLAG has been renamed
into C_SUPPORTS_NODEFAULTLIBS_FLAG because the last one is used in the
confix-ix.cmake file while the variable with the original name is not used
at al.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D126466

Files:
  libunwind/cmake/config-ix.cmake


Index: libunwind/cmake/config-ix.cmake
===================================================================
--- libunwind/cmake/config-ix.cmake
+++ libunwind/cmake/config-ix.cmake
@@ -35,7 +35,7 @@
 if (CXX_SUPPORTS_NOSTDLIBXX_FLAG)
   set(CMAKE_REQUIRED_FLAGS "${CMAKE_REQUIRED_FLAGS} -nostdlib++")
 else()
-  llvm_check_compiler_linker_flag(C "-nodefaultlibs" LIBUNWIND_SUPPORTS_NODEFAULTLIBS_FLAG)
+  llvm_check_compiler_linker_flag(C "-nodefaultlibs" C_SUPPORTS_NODEFAULTLIBS_FLAG)
   if (C_SUPPORTS_NODEFAULTLIBS_FLAG)
     set(CMAKE_REQUIRED_FLAGS "${CMAKE_REQUIRED_FLAGS} -nodefaultlibs")
   endif()


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D126466.432273.patch
Type: text/x-patch
Size: 606 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/libcxx-commits/attachments/20220526/29910547/attachment.bin>


More information about the libcxx-commits mailing list