<table border="1" cellspacing="0" cellpadding="8">
    <tr>
        <th>Issue</th>
        <td>
            <a href=https://github.com/llvm/llvm-project/issues/121288>121288</a>
        </td>
    </tr>

    <tr>
        <th>Summary</th>
        <td>
            [MLIR] [macOS] Cannot build `check-mlir` on macOS
        </td>
    </tr>

    <tr>
      <th>Labels</th>
      <td>
            mlir
      </td>
    </tr>

    <tr>
      <th>Assignees</th>
      <td>
      </td>
    </tr>

    <tr>
      <th>Reporter</th>
      <td>
          Luohaothu
      </td>
    </tr>
</table>

<pre>
    With CMake config:
```
-DLLVM_ENABLE_PROJECTS="mlir;clang"
-DLLVM_BUILD_EXAMPLES=ON
-DLLVM_ENABLE_ASSERTIONS=ON
-DLLVM_CCACHE_BUILD=ON
-DLLVM_ENABLE_LLD=ON
-DLLVM_USE_SANITIZER="Address;Undefined"
-DMLIR_INCLUDE_INTEGRATION_TESTS=ON
-DLLVM_USE_SPLIT_DWARF=ON
-DBUILD_SHARED_LIBS=ON
-DCLANG_ENABLE_CIR=ON
```
and clang compiler on macOS, `check-mlir` got error message:
```
[804/805] Running the MLIR regression tests
llvm-lit: /Volumes/nvme/projects/llvm-project/llvm/utils/lit/lit/TestingConfig.py:156: fatal: unable to parse config file '/Volumes/nvme/projects/llvm-project/mlir/test/lit.cfg.py', traceback: Traceback (most recent call last):
  File "/Volumes/nvme/projects/llvm-project/llvm/utils/lit/lit/TestingConfig.py", line 144, in load_from_path
    exec(compile(data, path, "exec"), cfg_globals, None)
 ~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Volumes/nvme/projects/llvm-project/mlir/test/lit.cfg.py", line 254, in <module>
    real_python_executable = find_real_python_interpreter()
  File "/Volumes/nvme/projects/llvm-project/mlir/test/lit.cfg.py", line 109, in find_real_python_interpreter
    copied_python = os.path.join(config.lldb_build_directory, "copied-python")
 ^^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: 'TestingConfig' object has no attribute 'lldb_build_directory'
```

Is this a bug of the script or some misconfig of my environment?
</pre>
<img width="1" height="1" alt="" src="http://email.email.llvm.org/o/eJzMVVFvozgQ_jXOy6gRMYEkD3kghOzmRNMqSXdP94IMDOCtsSPbVNeX_vaTgVx77d5Jd1Klk1CEM-PP33z-mGHG8FoirkmwIcF2wjrbKL1OO9UwZZtukqvyef2d2wbiW_aIUChZ8Zr4EfEiEnrj40U32zT9dpslh2iTJtn98e6XJD6fiL8llLaCa-JvCsFkTSh9zd487NNtlvwa3d6niUu-O3yAik6n5Hje3x3ex-M4ir8mA8bPt6YfAg-nJDtFh_15_1tyHMhFZanRGOJvHmSJFZdYXjnepvtjtj_E6cM2yfaHc_LlGDkm2Tk5nd_T6aHv0_05236PjrvX6FDk6Wt0TLZZut-82Rin0eHLlW28P14jb4VlsoReOShUe-ECNSgJLSvuToTGQEKvaLB4vOlFDj2olQXUWmlo0RhW48e7IsFm6c0J3S29gARbOHZSclmDbRBczaCxdppwJcGisYZ4kRBP7Y3glvgRELr7pkTXoiF0J59aJHR30eoHFtb906eO63FJ6K6zXPRRbv_8PaOxXNZx76np5Zn40SwI3REVs0y4l06yXCBYBRemzdV_UHGBQOji31HpNaI7V9PAYVpU_bkOKAarWYE5Kx7dwefrAghdtspY0FigtFAwIUAwB7EatAXYDXTo5ynjsGMQXCLM5nP3ziUIxcqs0qrNLsw2PRMA_B0LQpejWwhdlswyt6HPcZahdMihrgIaQ1HVWS1UzhyNGA5Koot4Eby8vLyQIPl_Pf9d8L-__1d1aXBVl_hxq8pOIPGTUVuNTGSXZ9somTkNO9u7k_hbqLgss7dxLi3qi0aLmtDlKOgnEp95q5H4P1IZCinUhWM5xnv-ykydQaY_FJe9fXrnCVHmWd5xUWYl11hYpZ9HDw0QNwPEaCYvgs-478hazfPOYuIa29CCFn_5RAhdgMqdWtAwA1IBu-5xuT8vY_G-L3rR3oBtuAEGeVeDqvqeaArNLxaUBqNahJabsQupCtpnQPnEtZItSkv83aRc--XKX7EJrmcLP5iHq8UqmDTrcL6sVrhki1VRruZV7lUYhsyrfOoV-WxeTviaenQ-o3Q184LQD6YhZSGdsUWJ3mKxDGdk7mHLuJg6d0yVrifcmA7XMzqjy-VEsByF6Sf5OHMpdTNdr3s35V1tyNwT3FjzimC5Ff30d43fDQMSbIbhEmwhZlIqC71wHyfNdQxNOi3WjbUX49oh3RG6q7ltunxaqPa1zb2zdE_dWX1k_7SmfwQAAP__w4qZrA">