<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Issue</th>
<td>
<a href=https://github.com/llvm/llvm-project/issues/66600>66600</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>
[compiler-rt][windows][arm64] building with COMPILER_RT_INCLUDE_TESTS causes linker error
</td>
</tr>
<tr>
<th>Labels</th>
<td>
new issue
</td>
</tr>
<tr>
<th>Assignees</th>
<td>
</td>
</tr>
<tr>
<th>Reporter</th>
<td>
farzonl
</td>
</tr>
</table>
<pre>
Patform:
OS: Windows 11 Version 22H2 (Build 22621.2283)
clang version 16.0.0
Target: aarch64-pc-windows-msvc
Thread model: posix
InstalledDir: C:\Program Files\LLVM\bin
Commit im on: 5bdd5d064d5171b2d5ff6268528cfffd2f86b8ea
Action:
```bash
cmake -GNinja -DLLVM_ENABLE_PROJECTS=llvm;compiler-rt -DCMAKE_BUILD_TYPE=Release \
-DLLVM_ENABLE_PDB=ON -DLLVM_ENABLE_ASSERTIONS=ON -DLLVM_TARGETS_TO_BUILD=AArch64 \
-DCMAKE_C_COMPILER=clang-cl.exe -DCMAKE_CXX_COMPILER=clang-cl.exe \
-DCOMPILER_RT_INCLUDE_TESTS=TRUE -DCMAKE_LINKER=lld-link.exe \
-S llvm-project\llvm -B compiler-rt_build
ninja -C llvm_build
```
Then to build the compiler rt tests:
```bash
cd llvm_build
ninja check-all
```
Error im seeing
```
LINK : fatal error LNK1104: cannot open file 'stl_asan.lib'
```
is this related to https://github.com/microsoft/STL/blob/main/stl/src/asan.cpp?
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJx8VNtu2zgQ_Rr6hZAhUTf7QQ-yLl1vHDuwlW73SaDEkcWGIg2STrr79QtJTpp20wIGDXJmzlzO0VBj-FkCJCjcoDBf0KvtlU46qv9VUiwaxf5JHqjtlB6QnyI3R256OCE_xX9xydSLQRlBqet5-DNow5XEhPxBMCKrzZULhgmJiLckZOUjsp7DW0HlGT_f3L1o6S7d2VJRfQY7glOq2z4KnEvrv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