[PATCH] cmake: Avoid "-fno-sanitize-recover is deprecated" warnings when building with ubsan
Justin Bogner
mail at justinbogner.com
Wed May 13 21:56:46 PDT 2015
Alexey Samsonov <vonosmas at gmail.com> writes:
> In this specific case I'd just replace "-fno-sanize-recover" with
> "-fno-sanitize-recover=all". This should be supported by fresh enough GCC and
> Clang, which we generally recommend to use for LLVM_USE_SANITIZER bootstrap.
Alright, that simplifies things. r237334.
> On Wed, May 13, 2015 at 5:20 PM, Justin Bogner <mail at justinbogner.com> wrote:
>
> I decided to try building with '-DLLVM_USE_SANITIZER=Address;Undefined',
> but it spits out deprecation warnings the whole time compilation is
> happening. The attached patch attempts to fix that by following the
> advice in the deprecation warning.
>
> I don't really grok cmake, but this seems to work. Does it look right?
>
> --
> Alexey Samsonov
> vonosmas at gmail.com
More information about the llvm-commits
mailing list