[PATCH] D88157: [CMake] Make sure _cmake_system_name has a default

David Tenty via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Sep 25 08:33:24 PDT 2020


This revision was automatically updated to reflect the committed changes.
Closed by commit rGc74da051b868: [CMake] Make sure _cmake_system_name has a default (authored by daltenty).

Changed prior to commit:
  https://reviews.llvm.org/D88157?vs=293797&id=294325#toc

Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D88157

Files:
  llvm/cmake/modules/LLVMExternalProjectUtils.cmake


Index: llvm/cmake/modules/LLVMExternalProjectUtils.cmake
===================================================================
--- llvm/cmake/modules/LLVMExternalProjectUtils.cmake
+++ llvm/cmake/modules/LLVMExternalProjectUtils.cmake
@@ -52,6 +52,12 @@
     endif()
   endforeach()
 
+  # If CMAKE_SYSTEM_NAME is not set explicitly in the arguments passed to us,
+  # reflect CMake's own default.
+  if (NOT _cmake_system_name)
+    set(_cmake_system_name "${CMAKE_HOST_SYSTEM_NAME}")
+  endif()
+
   if(NOT ARG_TOOLCHAIN_TOOLS)
     set(ARG_TOOLCHAIN_TOOLS clang lld llvm-ar llvm-ranlib llvm-nm llvm-objdump)
     if(_cmake_system_name STREQUAL Darwin)


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D88157.294325.patch
Type: text/x-patch
Size: 653 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200925/fe000e8b/attachment.bin>


More information about the llvm-commits mailing list