diff options
author | Zachary Turner <zturner@google.com> | 2017-02-21 21:31:28 +0000 |
---|---|---|
committer | Zachary Turner <zturner@google.com> | 2017-02-21 21:31:28 +0000 |
commit | e1ca5a294c630e46921cc83b0f3cc42226fee0c9 (patch) | |
tree | b0159bbb6dd3d025754dc9ef3bd94452cecf4aaa /llvm/lib/Support/Unix/Path.inc | |
parent | 6bc2dac132771e42ff89ed0ec59a9777761843d3 (diff) | |
download | bcm5719-llvm-e1ca5a294c630e46921cc83b0f3cc42226fee0c9.tar.gz bcm5719-llvm-e1ca5a294c630e46921cc83b0f3cc42226fee0c9.zip |
Try to fix the buildbot on OSX.
Since I'm only seeing failures on OSX, and it's saying
permission denied, I'm suspecting this is due to the addition
of the MAP_RESILIENT_CODESIGN and/or MAP_RESILIENT_MEDIA flags.
Speculatively trying to remove those to get the bots working.
llvm-svn: 295770
Diffstat (limited to 'llvm/lib/Support/Unix/Path.inc')
-rw-r--r-- | llvm/lib/Support/Unix/Path.inc | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/llvm/lib/Support/Unix/Path.inc b/llvm/lib/Support/Unix/Path.inc index b0aab160787..4b35c7b4687 100644 --- a/llvm/lib/Support/Unix/Path.inc +++ b/llvm/lib/Support/Unix/Path.inc @@ -536,22 +536,6 @@ std::error_code mapped_file_region::init(int FD, uint64_t Offset, int flags = (Mode == readwrite) ? MAP_SHARED : MAP_PRIVATE; int prot = (Mode == readonly) ? PROT_READ : (PROT_READ | PROT_WRITE); -#if defined(__APPLE__) -//---------------------------------------------------------------------- -// Newer versions of MacOSX have a flag that will allow us to read from -// binaries whose code signature is invalid without crashing by using -// the MAP_RESILIENT_CODESIGN flag. Also if a file from removable media -// is mapped we can avoid crashing and return zeroes to any pages we try -// to read if the media becomes unavailable by using the -// MAP_RESILIENT_MEDIA flag. -//---------------------------------------------------------------------- -#if defined(MAP_RESILIENT_CODESIGN) - flags |= MAP_RESILIENT_CODESIGN; -#endif -#if defined(MAP_RESILIENT_MEDIA) - flags |= MAP_RESILIENT_MEDIA; -#endif -#endif // #if defined (__APPLE__) Mapping = ::mmap(nullptr, Size, prot, flags, FD, Offset); if (Mapping == MAP_FAILED) |