<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Issue</th>
<td>
<a href=https://github.com/llvm/llvm-project/issues/94284>94284</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>
llvm-clang-win-x-{armv7l,aarch64}-release: migrate away from DEFAULT_SYSROOT
</td>
</tr>
<tr>
<th>Labels</th>
<td>
infrastructure
</td>
</tr>
<tr>
<th>Assignees</th>
<td>
</td>
</tr>
<tr>
<th>Reporter</th>
<td>
MaskRay
</td>
</tr>
</table>
<pre>
The CMake variable `DEFAULT_SYSROOT` provides a default `--sysroot=` for every `clang --target=xxx`.
Within the `clang/test/Driver` testsuite, there have been many changes tha adjust `--sysroot=` so that
these tests will pass on build bots that specify `DEFAULT_SYSROOT`.
Like the now-deprecated `GCC_INSTALL_PREFIX`, this places undue maintenance burden to keep `clang/test/Driver` tests pass for all supported bots.
Two changes should happen:
* There should be no expectation that all tests will pass.
* `DEFAULT_SYSROOT` should eventually be deprecated and then removed. (After we figure out a way to support relative paths https://reviews.llvm.org/D158218)
As alternatives, llvm-clang-win-x-{armv7l,aarch64}-release may switch a Clang configuration file.
* https://clang.llvm.org/docs/UsersManual.html#configuration-files
* https://blogs.gentoo.org/mgorny/2022/10/07/clang-in-gentoo-now-sets-default-runtimes-via-config-file
In short, place `bin/$default_triple.cfg` beside `bin/clang`.
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJyUVF1vozgU_TXOyxUIDOTjgYdMMqwqtTurNqPdfaoucAFPjY1sQ5p_vzJkO2nV1WpeEik5Pvecc4-N1opWEeUs-8Ky4wpH12mTP6B9ecTLqtT1JT91BIcHfCGY0AgsJQFbR8evxf77_en56e-nx2_fTmwdwWD0JGqygFBTg6N0HhgE9mKN1o4lR49qtAGayFz8n5VE1UIQODQtecTr6ytbRyGLjizaL59_CtcJBa6jtxOMF46sY7w4GjGR8bz-BzsKR4wfPNgQdDgRlEQKelQXqDpULVlwHQLWP0b7qT6rPcAts11HlhZqOAspYUBrQSsoRy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