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

    <tr>
        <th>Summary</th>
        <td>
            compiler-rt standalone build documentation is misleading and somewhat outdated
        </td>
    </tr>

    <tr>
      <th>Labels</th>
      <td>
            compiler-rt
      </td>
    </tr>

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

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

<pre>
    On the page https://compiler-rt.llvm.org/ there is the section "Get it and get involved!". In the course of trying to answer https://discourse.llvm.org/t/compiler-rt-build-and-tests/67231/ I found 2 things:

1. The standalone build does not allow you to run tests, at least not with `ninja check-all` from the build dir. Is that intentional? The documentation goes on to say "Tests for sanitizer runtimes are ported to [llvm-lit](https://llvm.org/docs/CommandGuide/lit.html) and are run by make check-all command in LLVM/Clang/compiler-rt build tree.".

Maybe I misunderstood that sentence, but if I did, it is not very clear which build tree is referred to in the case of a standalone build. If testing cannot be done on a standalone build we should rearrange the text to make that clearer.

```
$ ninja -t targets | grep -i check
/home/david.spickett/llvm-project/build-compiler-rt/lib/tsan/rtl/CMakeFiles/GotsanRuntimeCheck: CUSTOM_COMMAND
GotsanRuntimeCheck: phony
```

2. I got this cmake warning:
```
CMake Warning at cmake/Modules/CompilerRTUtils.cmake:281 (message):
  LLVM_CONFIG_PATH is deprecated, please use LLVM_CMAKE_DIR instead
Call Stack (most recent call first):
  CMakeLists.txt:90 (load_llvm_config)
```
I tried `DLLVM_CMAKE_DIR=/path/to/build/dir/` and that worked without issue. I assume we need to update these instructions?
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJxsVd-P2rgT_2vMy4goOJsADzxQ-LJfdKV7ard3jysTTxJ3HRvZk6XcX38ah7ZwXQlFRJnxzHx-jFWMpnWIK1F-EOV2ogbqfFht1ZvRX06mfkWiydHry-rJAXUIJ9UidESnKIq1kDshd7XvT8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