Add TSan and UBSan to sanitize options#2315
Add TSan and UBSan to sanitize options#2315nickclark2016 merged 8 commits intopremake:masterfrom JakeIsMeh:master
Conversation
website/docs/sanitize.md
Outdated
| | Thread | Enables compiler support for ThreadSanitizer. | | ||
| | Undefined | Enables compiler support for UndefinedBehaviorSanitizer (UBSan). | |
There was a problem hiding this comment.
supported only by gcc/clang
Check also if msvc with clang toolset can support it
There was a problem hiding this comment.
clang-cl supports passing -fsanitize=undefined to it, but I am unable to find a corresponding vcxproj flag for it.
There was a problem hiding this comment.
Just keeping it with gcc/clang without MSVC/MSBuild support is perfectly sufficient for now.
|
|
|
Failing lines: test_clang.lua: test_gcc.lua: |
|
Regarding Clang libFuzzer, I can make the test pass, but I believe that the existing implementation might be wrong? |
|
I can revert the last commit (69bf538) and also the test changes for clang, and put them into another PR if desired. |
What does this PR do?
Add TSan and UBSan to the list of sanitize options
How does this PR change Premake's behavior?
It is possible for users to enable TSan and UBSan now.
Anything else we should know?
I'm unable to run the tests so I'm unsure if they actually pass.
Did you check all the boxes?
closes #XXXXin comment to auto-close issue when PR is merged)You can now support Premake on our OpenCollective. Your contributions help us spend more time responding to requests like these!