summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Support/Unix
diff options
context:
space:
mode:
authorPetr Hosek <phosek@chromium.org>2018-05-03 01:38:49 +0000
committerPetr Hosek <phosek@chromium.org>2018-05-03 01:38:49 +0000
commit87f1343a73fa56729571fb93deeb4f795d3e042b (patch)
tree4f929951f0adde3fc62aac9ce62910f265bf3fb3 /llvm/lib/Support/Unix
parenta07295f97760715eca88b65aae926da2d1e96bdb (diff)
downloadbcm5719-llvm-87f1343a73fa56729571fb93deeb4f795d3e042b.tar.gz
bcm5719-llvm-87f1343a73fa56729571fb93deeb4f795d3e042b.zip
[Support] Support building LLVM for Fuchsia
These are necessary changes to support building LLVM for Fuchsia. While these are not sufficient to run on Fuchsia, they are still useful when cross-compiling LLVM libraries and runtimes for Fuchsia. Differential Revision: https://reviews.llvm.org/D46345 llvm-svn: 331423
Diffstat (limited to 'llvm/lib/Support/Unix')
-rw-r--r--llvm/lib/Support/Unix/Path.inc3
1 files changed, 3 insertions, 0 deletions
diff --git a/llvm/lib/Support/Unix/Path.inc b/llvm/lib/Support/Unix/Path.inc
index 9bd8cca3738..f9778321dd2 100644
--- a/llvm/lib/Support/Unix/Path.inc
+++ b/llvm/lib/Support/Unix/Path.inc
@@ -365,6 +365,9 @@ static bool is_local_impl(struct STATVFS &Vfs) {
#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);
OpenPOWER on IntegriCloud