diff options
author | Tavian Barnes <tavianator@tavianator.com> | 2025-07-02 10:51:22 -0400 |
---|---|---|
committer | Tavian Barnes <tavianator@tavianator.com> | 2025-07-04 08:22:18 -0400 |
commit | 19b4d6bb428a94359f0aca524867a8066afe8b5c (patch) | |
tree | 7103399545f281eec646bff379cfab786a499211 /src/bfs.h | |
parent | 458c99ba19ccafb637f25bfb7f5a1de2dd84c6dc (diff) | |
download | bfs-19b4d6bb428a94359f0aca524867a8066afe8b5c.tar.xz |
build: Add support for TySan
There are some false positives, so it's not added to distcheck yet.
Diffstat (limited to 'src/bfs.h')
-rw-r--r-- | src/bfs.h | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -202,7 +202,10 @@ extern const char bfs_ldlibs[]; * Disabled on TSan due to https://github.com/google/sanitizers/issues/342. */ #ifndef BFS_USE_TARGET_CLONES -# if __has_attribute(target_clones) && (__GLIBC__ || __FreeBSD__) && !__SANITIZE_THREAD__ +# if __has_attribute(target_clones) \ + && (__GLIBC__ || __FreeBSD__) \ + && !__SANITIZE_THREAD__ \ + && !__SANITIZE_TYPE__ # define BFS_USE_TARGET_CLONES true # else # define BFS_USE_TARGET_CLONES false |