Fix ASAN execution for the MLIR Python tests
authorMehdi Amini <joker.eph@gmail.com>
Sun, 3 Oct 2021 01:24:07 +0000 (01:24 +0000)
committerMehdi Amini <joker.eph@gmail.com>
Sun, 3 Oct 2021 05:07:32 +0000 (05:07 +0000)
commitbce0c6429ee3994a7376ab9e40d40477ef43cb31
treee8cf6c39dfc642a4a0c8bf7dae5bc8f91b1f3377
parent86f50288989a87e421e2551d8a00d85e993a53a7
Fix ASAN execution for the MLIR Python tests

First the leak sanitizer has to be disabled, as even an empty script
leads to leak detection with Python.
Then we need to preload the ASAN runtime, as the main binary (python)
won't be linked against it. This will only work on Linux right now.

Differential Revision: https://reviews.llvm.org/D111004
mlir/test/lit.cfg.py
mlir/test/python/lit.local.cfg