[llvm] r297378 - fix build on Cygwin
Nuno Lopes via llvm-commits
llvm-commits at lists.llvm.org
Thu Mar 9 05:43:31 PST 2017
Author: nlopes
Date: Thu Mar 9 07:43:31 2017
New Revision: 297378
URL: http://llvm.org/viewvc/llvm-project?rev=297378&view=rev
Log:
fix build on Cygwin
Modified:
llvm/trunk/lib/Support/Unix/Path.inc
Modified: llvm/trunk/lib/Support/Unix/Path.inc
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Support/Unix/Path.inc?rev=297378&r1=297377&r2=297378&view=diff
==============================================================================
--- llvm/trunk/lib/Support/Unix/Path.inc (original)
+++ llvm/trunk/lib/Support/Unix/Path.inc Thu Mar 9 07:43:31 2017
@@ -372,6 +372,9 @@ static bool is_local_impl(struct STATVFS
default:
return true;
}
+#elif defined(__CYGWIN__)
+ // Cygwin doesn't expose this information; would need to use Win32 API.
+ return false;
#else
return !!(STATVFS_F_FLAG(Vfs) & MNT_LOCAL);
#endif
More information about the llvm-commits
mailing list