Does premake support thread-sanitizer builds?

67 Views Asked by At

Building for thread sanitizer is a simple flag in gcc invokation:

-fsanitize=thread

Yet when looking at sanitizer support in premake I only see the options "Address" and "Fuzzer".

  • Is there an "official" way to build with thread sanitizer using premake?
  • If not, where do I have to specify my -fsanitize=thread flags?
1

There are 1 best solutions below

1
Jarod42 On BEST ANSWER

There are still buildoptions/linkoptions

so

filter "toolset:gcc or toolset:clang"
    buildoptions{"-fsanitize=thread"}
    linkoptions{"-fsanitize=thread"}
filter {}