From: Alexander Potapenko Date: Wed, 6 Feb 2013 14:41:15 +0000 (+0000) Subject: Use 64-bit inodes in file operations. ASan is now built with -mmacosx-version-min... X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=d895ae94f92be51f29e72912bf6e6825a7b3d62c;p=platform%2Fupstream%2Fllvm.git Use 64-bit inodes in file operations. ASan is now built with -mmacosx-version-min=10.5, thus the default inode size is 32 bits. However the supported client code is going to target 10.6 and higher, where 64-bit inodes will be used. llvm-svn: 174507 --- diff --git a/compiler-rt/lib/sanitizer_common/sanitizer_mac.cc b/compiler-rt/lib/sanitizer_common/sanitizer_mac.cc index 3c0c877..2c5bd52 100644 --- a/compiler-rt/lib/sanitizer_common/sanitizer_mac.cc +++ b/compiler-rt/lib/sanitizer_common/sanitizer_mac.cc @@ -13,6 +13,12 @@ //===----------------------------------------------------------------------===// #ifdef __APPLE__ +// Use 64-bit inodes in file operations. ASan does not support OS X 10.5, so +// the clients will most certainly use 64-bit ones as well. +#ifndef _DARWIN_USE_64_BIT_INODE +#define _DARWIN_USE_64_BIT_INODE 1 +#endif +#include #include "sanitizer_common.h" #include "sanitizer_internal_defs.h"