[PATCH] D46345: [Support] Support building LLVM for Fuchsia
Petr Hosek via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed May 2 18:29:13 PDT 2018
phosek updated this revision to Diff 144964.
phosek marked an inline comment as done.
Repository:
rL LLVM
https://reviews.llvm.org/D46345
Files:
llvm/cmake/modules/HandleLLVMOptions.cmake
llvm/lib/Support/Unix/Path.inc
Index: llvm/lib/Support/Unix/Path.inc
===================================================================
--- llvm/lib/Support/Unix/Path.inc
+++ llvm/lib/Support/Unix/Path.inc
@@ -365,6 +365,9 @@
#elif defined(__CYGWIN__)
// Cygwin doesn't expose this information; would need to use Win32 API.
return false;
+#elif defined(__Fuchsia__)
+ // Fuchsia doesn't yet support remote filesystem mounts.
+ return true;
#elif defined(__sun)
// statvfs::f_basetype contains a null-terminated FSType name of the mounted target
StringRef fstype(Vfs.f_basetype);
Index: llvm/cmake/modules/HandleLLVMOptions.cmake
===================================================================
--- llvm/cmake/modules/HandleLLVMOptions.cmake
+++ llvm/cmake/modules/HandleLLVMOptions.cmake
@@ -115,17 +115,17 @@
set(LLVM_ON_UNIX 0)
endif(CYGWIN)
else(WIN32)
- if(UNIX)
+ 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(UNIX)
+ else(FUCHSIA OR UNIX)
MESSAGE(SEND_ERROR "Unable to determine platform")
- endif(UNIX)
+ endif(FUCHSIA OR UNIX)
endif(WIN32)
set(EXEEXT ${CMAKE_EXECUTABLE_SUFFIX})
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D46345.144964.patch
Type: text/x-patch
Size: 1298 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180503/31424d40/attachment.bin>
More information about the llvm-commits
mailing list