OLD | NEW |
1 // Copyright (c) 2015, the Fletch project authors. Please see the AUTHORS file | 1 // Copyright (c) 2015, the Dartino project authors. Please see the AUTHORS file |
2 // for details. All rights reserved. Use of this source code is governed by a | 2 // for details. All rights reserved. Use of this source code is governed by a |
3 // BSD-style license that can be found in the LICENSE.md file. | 3 // BSD-style license that can be found in the LICENSE.md file. |
4 | 4 |
5 #ifndef SRC_SHARED_ASAN_HELPER_H_ | 5 #ifndef SRC_SHARED_ASAN_HELPER_H_ |
6 #define SRC_SHARED_ASAN_HELPER_H_ | 6 #define SRC_SHARED_ASAN_HELPER_H_ |
7 | 7 |
8 #if defined(__has_feature) | 8 #if defined(__has_feature) |
9 #if __has_feature(address_sanitizer) | 9 #if __has_feature(address_sanitizer) |
10 | 10 |
11 #include <sanitizer/lsan_interface.h> | 11 #include <sanitizer/lsan_interface.h> |
(...skipping 13 matching lines...) Expand all Loading... |
25 | 25 |
26 #endif // __has_feature(address_sanitizer) | 26 #endif // __has_feature(address_sanitizer) |
27 #endif // defined(__has_feature) | 27 #endif // defined(__has_feature) |
28 | 28 |
29 #if defined(FLETCH_ASAN) && defined(FLETCH_CLANG) && \ | 29 #if defined(FLETCH_ASAN) && defined(FLETCH_CLANG) && \ |
30 defined(FLETCH_TARGET_X64) && !defined(USING_ADDRESS_SANITIZER) | 30 defined(FLETCH_TARGET_X64) && !defined(USING_ADDRESS_SANITIZER) |
31 #error "Expected to use ASAN in asan-clang-x64 configuration." | 31 #error "Expected to use ASAN in asan-clang-x64 configuration." |
32 #endif | 32 #endif |
33 | 33 |
34 #endif // SRC_SHARED_ASAN_HELPER_H_ | 34 #endif // SRC_SHARED_ASAN_HELPER_H_ |
OLD | NEW |