OSDN Git Service

[Support] Fix build under Emscripten
authorKeno Fischer <keno@alumni.harvard.edu>
Sun, 23 Jun 2019 00:29:59 +0000 (00:29 +0000)
committerKeno Fischer <keno@alumni.harvard.edu>
Sun, 23 Jun 2019 00:29:59 +0000 (00:29 +0000)
commit608956c485848977a607ccb95bff69dc081927e8
treec2b75556da3272d4a080bde960050d4fa92068df
parent94750391d90bef27c15608783a2cb7885a3a3220
[Support] Fix build under Emscripten

Summary:
Emscripten's libc doesn't define MNT_LOCAL, thus causing a build
failure in the fallback path. However, to the best of my knowledge,
it also doesn't support remote file system mounts, so we may simply
return `true` here (as we do for e.g. Fuchsia). With this fix, the
core LLVM libraries build correctly under emscripten (though some
of the tools and utils do not).

Reviewers: kripken
Differential Revision: https://reviews.llvm.org/D63688

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@364143 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Support/Unix/Path.inc