[all-commits] [llvm/llvm-project] d34462: MLIR: asan: Fix python tests under asan on Linux (...

Matthias Gehre via All-commits all-commits at lists.llvm.org
Tue Jan 28 23:36:35 PST 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: d34462409757731e158909250d2a4be4f9d2de80
      https://github.com/llvm/llvm-project/commit/d34462409757731e158909250d2a4be4f9d2de80
  Author: Matthias Gehre <matthias.gehre at amd.com>
  Date:   2025-01-29 (Wed, 29 Jan 2025)

  Changed paths:
    M mlir/test/lit.cfg.py

  Log Message:
  -----------
  MLIR: asan: Fix python tests under asan on Linux (#123303)

Running MLIR python tests unders asan currently fails with
```
executed command: 'LD_PRELOAD=$(/usr/bin/clang++-17' '-print-file-name=libclang_rt.asan-x86_64.so)' /scratch/slx-llvm/.venv-3.10/bin/python3.10 /scratch/slx-llvm/mlir/test/python/ir/context_lifecycle.py

| 'LD_PRELOAD=$(/usr/bin/clang++-17': command not found
```
because lit doesn't quite understand the syntax.
To fix, we resolve the path to `libclang_rt.asan-x86_64.so` within the
lit configuration. This has the additional benefit that we don't have to
call `clang++` for every test.

Co-authored-by: Philipp-Jan Honysz <Philipp.Honysz at amd.com>



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list