[PATCH] D96713: [cmake] Move check for libproc to config-ix.cmake

Raphael Isemann via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Feb 18 01:55:23 PST 2021


This revision was automatically updated to reflect the committed changes.
Closed by commit rG55d8f0d03b31: [cmake] Move check for libproc to config-ix.cmake (authored by ahoppen, committed by teemperor).

Changed prior to commit:
  https://reviews.llvm.org/D96713?vs=323757&id=324568#toc

Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D96713/new/

https://reviews.llvm.org/D96713

Files:
  llvm/CMakeLists.txt
  llvm/cmake/config-ix.cmake


Index: llvm/cmake/config-ix.cmake
===================================================================
--- llvm/cmake/config-ix.cmake
+++ llvm/cmake/config-ix.cmake
@@ -352,6 +352,8 @@
   unset(HAVE_FFI_CALL CACHE)
 endif( LLVM_ENABLE_FFI )
 
+check_symbol_exists(proc_pid_rusage "libproc.h" HAVE_PROC_PID_RUSAGE)
+
 # Whether we can use std::is_trivially_copyable to verify llvm::is_trivially_copyable.
 CHECK_CXX_SOURCE_COMPILES("
 #include <type_traits>
Index: llvm/CMakeLists.txt
===================================================================
--- llvm/CMakeLists.txt
+++ llvm/CMakeLists.txt
@@ -649,12 +649,6 @@
   endforeach()
 endif()
 
-include(CheckSymbolExists)
-check_symbol_exists(proc_pid_rusage "libproc.h" HAVE_PROC_PID_RUSAGE)
-if(HAVE_PROC_PID_RUSAGE)
-  list(APPEND CMAKE_REQUIRED_LIBRARIES proc)
-endif()
-
 # Use libtool instead of ar if you are both on an Apple host, and targeting Apple.
 if(CMAKE_HOST_APPLE AND APPLE)
   include(UseLibtool)


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D96713.324568.patch
Type: text/x-patch
Size: 968 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20210218/bca0298c/attachment.bin>


More information about the llvm-commits mailing list