[libunwind] 17b0d90 - [libunwind] Removes CMake work-arounds.

Mark de Wever via cfe-commits cfe-commits at lists.llvm.org
Mon Jun 5 08:44:15 PDT 2023


Author: Mark de Wever
Date: 2023-06-05T17:42:37+02:00
New Revision: 17b0d90e20eed93bd55a57c614565e7c9fbae3b1

URL: https://github.com/llvm/llvm-project/commit/17b0d90e20eed93bd55a57c614565e7c9fbae3b1
DIFF: https://github.com/llvm/llvm-project/commit/17b0d90e20eed93bd55a57c614565e7c9fbae3b1.diff

LOG: [libunwind] Removes CMake work-arounds.

CMake older than 3.20.0 is no longer supported.
This removes work-arounds for no longer supported versions.

Reviewed By: #libunwind, mstorsjo

Differential Revision: https://reviews.llvm.org/D152100

Added: 
    

Modified: 
    libunwind/src/CMakeLists.txt

Removed: 
    


################################################################################
diff  --git a/libunwind/src/CMakeLists.txt b/libunwind/src/CMakeLists.txt
index ef34174438727..6a9572f6cadf0 100644
--- a/libunwind/src/CMakeLists.txt
+++ b/libunwind/src/CMakeLists.txt
@@ -26,14 +26,6 @@ set(LIBUNWIND_ASM_SOURCES
     UnwindRegistersSave.S
     )
 
-# See add_asm_sources() in compiler-rt for explanation of this workaround.
-# CMake doesn't work correctly with assembly on AIX. Workaround by compiling
-# as C files as well.
-if((APPLE AND CMAKE_VERSION VERSION_LESS 3.19) OR
-   (MINGW AND CMAKE_VERSION VERSION_LESS 3.17))
-  set_source_files_properties(${LIBUNWIND_ASM_SOURCES} PROPERTIES LANGUAGE C)
-endif()
-
 set(LIBUNWIND_HEADERS
     AddressSpace.hpp
     assembly.h


        


More information about the cfe-commits mailing list