[PATCH] D144757: Allow building with CMAKE_SYSTEM_NAME=Generic
Michael Platings via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon Feb 27 02:24:15 PST 2023
This revision was landed with ongoing or failed builds.
This revision was automatically updated to reflect the committed changes.
Closed by commit rG1422f1bf2b14: Allow building with CMAKE_SYSTEM_NAME=Generic (authored by michaelplatings).
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D144757/new/
https://reviews.llvm.org/D144757
Files:
llvm/cmake/modules/HandleLLVMOptions.cmake
Index: llvm/cmake/modules/HandleLLVMOptions.cmake
===================================================================
--- llvm/cmake/modules/HandleLLVMOptions.cmake
+++ llvm/cmake/modules/HandleLLVMOptions.cmake
@@ -141,19 +141,21 @@
set(LLVM_ON_WIN32 1)
set(LLVM_ON_UNIX 0)
endif(CYGWIN)
-else(WIN32)
- if(FUCHSIA OR UNIX)
- set(LLVM_ON_WIN32 0)
- set(LLVM_ON_UNIX 1)
- if(APPLE OR ${CMAKE_SYSTEM_NAME} MATCHES "AIX")
- set(LLVM_HAVE_LINK_VERSION_SCRIPT 0)
- else()
- set(LLVM_HAVE_LINK_VERSION_SCRIPT 1)
- endif()
- else(FUCHSIA OR UNIX)
- MESSAGE(SEND_ERROR "Unable to determine platform")
- endif(FUCHSIA OR UNIX)
-endif(WIN32)
+elseif(FUCHSIA OR UNIX)
+ set(LLVM_ON_WIN32 0)
+ set(LLVM_ON_UNIX 1)
+ if(APPLE OR ${CMAKE_SYSTEM_NAME} MATCHES "AIX")
+ set(LLVM_HAVE_LINK_VERSION_SCRIPT 0)
+ else()
+ set(LLVM_HAVE_LINK_VERSION_SCRIPT 1)
+ endif()
+elseif(CMAKE_SYSTEM_NAME STREQUAL "Generic")
+ set(LLVM_ON_WIN32 0)
+ set(LLVM_ON_UNIX 0)
+ set(LLVM_HAVE_LINK_VERSION_SCRIPT 0)
+else()
+ MESSAGE(SEND_ERROR "Unable to determine platform")
+endif()
if (CMAKE_SYSTEM_NAME MATCHES "OS390")
set(LLVM_HAVE_LINK_VERSION_SCRIPT 0)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D144757.500714.patch
Type: text/x-patch
Size: 1190 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20230227/a9a2f018/attachment.bin>
More information about the llvm-commits
mailing list