Page MenuHomePhabricator

D72951.diff
No OneTemporary

File Metadata

Created
Tue, Jun 2, 11:14 PM

D72951.diff

Index: llvm/cmake/modules/HandleLLVMOptions.cmake
===================================================================
--- llvm/cmake/modules/HandleLLVMOptions.cmake
+++ llvm/cmake/modules/HandleLLVMOptions.cmake
@@ -107,19 +107,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()
set(EXEEXT ${CMAKE_EXECUTABLE_SUFFIX})
set(LTDL_SHLIB_EXT ${CMAKE_SHARED_LIBRARY_SUFFIX})

Event Timeline