<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Issue</th>
<td>
<a href=https://github.com/llvm/llvm-project/issues/145416>145416</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>
DebugInfo/assignment-tracking/X86/large-type.ll lacks target triple
</td>
</tr>
<tr>
<th>Labels</th>
<td>
new issue
</td>
</tr>
<tr>
<th>Assignees</th>
<td>
</td>
</tr>
<tr>
<th>Reporter</th>
<td>
badumbatish
</td>
</tr>
</table>
<pre>
This causes newly built llc that doesn't have a default host or a too specific host to fail to run the test.
For example, with this build command (without -DLLVM_DEFAULT_TARGET_TRIPLE=arm):
```
cmake -S llvm -B build -G Ninja -DLLVM_ENABLE_ASSERTIONS=true -DCMAKE_BUILD_TYPE=Release -DCMAKE_EXPORT_COMPILE_COMMANDS=ON -DLLVM_TARGETS_TO_BUILD="WebAssembly;RISCV;ARM;X86" -DLLVM_CCACHE_BUILD=true -DCMAKE_LINKER_TYPE=LLD -DLLVM_ENABLE_PROJECTS="clang;clang-tools-extra" -DCMAKE_C_COMPILER=$HOME/Developer/igalia/LLVM-20.1.7-macOS-ARM64/bin/clang -DCMAKE_CXX_COMPILER=$HOME/Developer/igalia/LLVM-20.1.7-macOS-ARM64/bin/clang++
```
that produces this llc
```
build/bin/llc --version
LLVM (http://llvm.org/):
LLVM version 21.0.0git
Optimized build with assertions.
Default target:
Host CPU: apple-m2
Registered Targets:
arm - ARM
armeb - ARM (big endian)
riscv32 - 32-bit RISC-V
riscv64 - 64-bit RISC-V
thumb - Thumb
thumbeb - Thumb (big endian)
wasm32 - WebAssembly 32-bit
wasm64 - WebAssembly 64-bit
x86 - 32-bit X86: Pentium-Pro and above
x86-64 - 64-bit X86: EM64T and AMD64
```
```
********************
FAIL: LLVM :: DebugInfo/assignment-tracking/X86/large-type.ll (2 of 57719)
******************** TEST 'LLVM :: DebugInfo/assignment-tracking/X86/large-type.ll' FAILED ********************
Exit Code: 2
Command Output (stderr):
--
/Users/jjasmine/Developer/igalia/llvm-project/build/bin/llc /Users/jjasmine/Developer/igalia/llvm-project/llvm/test/DebugInfo/assignment-tracking/X86/large-type.ll -stop-after=finalize-isel -o - | /Users/jjasmine/Developer/igalia/llvm-project/build/bin/FileCheck /Users/jjasmine/Developer/igalia/llvm-project/llvm/test/DebugInfo/assignment-tracking/X86/large-type.ll --implicit-check-not=DBG_ # RUN: at line 1
+ /Users/jjasmine/Developer/igalia/llvm-project/build/bin/llc /Users/jjasmine/Developer/igalia/llvm-project/llvm/test/DebugInfo/assignment-tracking/X86/large-type.ll -stop-after=finalize-isel -o -
+ /Users/jjasmine/Developer/igalia/llvm-project/build/bin/FileCheck /Users/jjasmine/Developer/igalia/llvm-project/llvm/test/DebugInfo/assignment-tracking/X86/large-type.ll --implicit-check-not=DBG_
/Users/jjasmine/Developer/igalia/llvm-project/build/bin/llc: error: unable to get target for '', see --version and --triple.
FileCheck error: '<stdin>' is empty.
FileCheck command line: /Users/jjasmine/Developer/igalia/llvm-project/build/bin/FileCheck /Users/jjasmine/Developer/igalia/llvm-project/llvm/test/DebugInfo/assignment-tracking/X86/large-type.ll --implicit-check-not=DBG_
```
I'm happy to take this up if assigned.
</pre>
<img width="1" height="1" alt="" src="http://email.email.llvm.org/o/eJzkV1tv6j4S_zTmZWSUOBDaBx5CLuewfygI6NnuE3KSAdw6F9kObf-ffuUk9Krzclppd7WSpST23Oc34wnXWhxLxCkZz8g4GvDGnCo1TXneFCk3Qp8GaZU_T3cnoSHjjUYNJT7KZ0gbIQ1ImYE5cQN5hbokbGLgxM8IHHI88EYaOFXaQKWAg6kq0DVm4iCybttUcOBC2qdqSjAnBIPaDIkTJJUCfOJFLZGwEB6FOYGxRli9OWRVUfAyB8Ku7FHVGKDRYvFruY_iJLhd7Pa7YPMj3u13m_l6ERMv4qog7Jp4AXHa5Tv9cgLICv6AQLcg5bkAOuuV0B9wI8p7fhEd3wSzRbwPttt4s5uvbrbEi4xqEGgULoO_4v3sdr6I9rt_ra3CDUrk-vUwvluvNrt9uFqu54v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