This is an archive of the discontinued LLVM Phabricator instance.

[Support] Fix build under Emscripten
ClosedPublic

Authored by loladiro on Jun 22 2019, 4:45 PM.

Details

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).

Diff Detail

Event Timeline

loladiro created this revision.Jun 22 2019, 4:45 PM
Herald added a project: Restricted Project. · View Herald TranscriptJun 22 2019, 4:45 PM
kripken accepted this revision.Jun 22 2019, 4:52 PM
This revision is now accepted and ready to land.Jun 22 2019, 4:52 PM
This revision was automatically updated to reflect the committed changes.