[Sanitizer] test 64-bit allocator only on suitable targets

llvm-svn: 163615
This commit is contained in:
Alexey Samsonov 2012-09-11 12:19:18 +00:00
parent ab7a4ea485
commit 100150f59d
2 changed files with 8 additions and 2 deletions

View File

@ -17,8 +17,12 @@
#ifndef SANITIZER_ALLOCATOR_H
#define SANITIZER_ALLOCATOR_H
#include "sanitizer_common.h"
#include "sanitizer_internal_defs.h"
#if __WORDSIZE != 64
# error "sanitizer_allocator64.h can only be used on 64-bit platforms"
#endif
#include "sanitizer_common.h"
#include "sanitizer_libc.h"
#include "sanitizer_list.h"
#include "sanitizer_mutex.h"

View File

@ -1,5 +1,4 @@
set(SANITIZER_UNITTESTS
sanitizer_allocator64_test.cc
sanitizer_allocator_test.cc
sanitizer_common_test.cc
sanitizer_flags_test.cc
@ -7,6 +6,9 @@ set(SANITIZER_UNITTESTS
sanitizer_stackdepot_test.cc
sanitizer_test_main.cc
)
if(CMAKE_SIZEOF_VOID_P EQUAL 8 AND NOT LLVM_BUILD_32_BITS)
list(APPEND SANITIZER_UNITTESTS sanitizer_allocator64_test.cc)
endif()
include_directories(..)
include_directories(../..)