07-29-2019 10:32 AM
Newer CVI releases are based on clang and so I want to use all the power of clang.
How can I enable UndefinedBehaviorSanitizer (UBSan) in CVI?
07-31-2019 04:13 AM
Hi vix,
UndefinedBehaviorSanitizer was introduced in LLVM 3.8 and CVI is using LLVM 3.3 so you cannot use UBSan directly in CVI.
You can try to install the version of LLVM you want and use it in CVI through external compiler support.
07-31-2019 04:54 AM
Hi Razvan_Pora
I try to summarize what I should do to be able to use UBSan in CVI.
Have you already tried to do this activity, and so I can be almost sure it works?
Or is you suggestion a "should be possible" only?
08-01-2019 10:19 AM
Hi vix,
You can use whatever LLVM version you want as long as you pass proper flags to clang. But you need to know that the compiler is used only for release configuration and you cannot debug your applications built with external compiler from within CVI environment.
To answer your other question, I have not tried this idea personally but if you pass proper flags to clang I think you have a pretty good chance to get it working.
08-02-2019 12:48 AM - edited 08-02-2019 12:49 AM
But you need to know that the compiler is used only for release configuration and you cannot debug your applications built with external compiler from within CVI environment.
Not so useful, as an option.
I have not tried this idea personally but if you pass proper flags to clang I think you have a pretty good chance to get it working.
I have no time now for a new beta testing phase, sorry