forked from OSchip/llvm-project
Since clang modifies .o files in place, use MAP_PRIVATE as it seems
to fix the issues we run into on darwin even though the docs don't seems to say it will. llvm-svn: 147835
This commit is contained in:
parent
99e6e2f6f0
commit
7d7850af64
|
@ -171,7 +171,7 @@ DataBufferMemoryMap::MemoryMapFromFileDescriptor (int fd,
|
|||
if (writeable)
|
||||
prot |= PROT_WRITE;
|
||||
|
||||
int flags = MAP_SHARED;
|
||||
int flags = MAP_PRIVATE;
|
||||
if (fd_is_file)
|
||||
flags |= MAP_FILE;
|
||||
|
||||
|
|
Loading…
Reference in New Issue