Thread sanitizer tests

I saw, that undefined-behavior- and address-santitizer are supported for the `native_posix` (and `native_sim`?) boards via respective `KCONFIG`s.

Do you support building (for example tests) with `-fsanitize=thread`-compiler options (see for example: https://clang.llvm.org/docs/ThreadSanitizer.html)? If so, how can it be done?

I tried adding to cmake:

```

add_compile_options(-fsanitize=thread)

add_link_options(-fsanitize=thread)

```

For a test, for which I expected, that it would fail under such circumstances (I am not 100% confident). But it did not have the expected result.

Some hints are greatly appreciated, thanks in advance.

Parents Reply Children
No Data
Related