<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Issue</th>
<td>
<a href=https://github.com/llvm/llvm-project/issues/54527>54527</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>
LLVM building confusion
</td>
</tr>
<tr>
<th>Labels</th>
<td>
new issue
</td>
</tr>
<tr>
<th>Assignees</th>
<td>
</td>
</tr>
<tr>
<th>Reporter</th>
<td>
omerguzelelectronicguy
</td>
</tr>
</table>
<pre>
Hello,
I am trying to build an LLVM to make a backend project.
[This](https://llvm.org/docs/GettingStarted.html#getting-started-with-llvm) website suggested to use this command
> cmake -G <generator> [options] ../llvm
However, [github page](https://github.com/llvm/llvm-project) suggest this command:
> cmake -S llvm -B build -G <generator> [options]
I confuse which one I should use and what are the differences.
Thank you
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJyVkstunTAQhp_GbEYgYkNOWLDIpblI6SpR98YMxj3GPvIlR6dPXxuIqlaVqgokWzPM_N_8w2DHS_-MWltC70n9QOrbF-ALBHdRRkKwMESlR-AGXl-_fc2BhR8ROAxcHNGMcHL2O4pQbcWkvXuflSftA6E3cwgnT9gtoY_p1fpjqayT6Tpa4dPxhCEklbfAXcCxmsOiCWVyi5Z-C5dnFeYyFxPawRkHrwKCj1KiT-lMFD1CSKog7LJwM-4o7AuIFbZ8AsLuJRp0PFiXE4nTnoKyJqNCVe18W-WzPeMHuuRI_k4m_TjAiUv821hbukrSnz22o9yNydQ77e-QqcGfnG-QK6G8213_F_jnwoQ1UzbhPCsxgzUIL-BnG1OLHE5qKcUDcJeNQhjVNKFDI9Dve3ufuTnCxcZi7NnYsY4XQQWN_br1lSb_D5tQUi-i0_3_GvGovI-YN982LT0Ucz-1h3YSXdOx4arpOt427HpAjvSGs0PHD4XmA2rfp6kJpQbPsLZI9zR9oXpaU1oz2lxRVjNWcdHU01B30-GaCjGMpKlx4UpXn_9e4foVaYjSp6RWPvhfSe69kgZxlUv9eQyzdb1d0Mn4A3V6RHDWKCHjpVhJ-nWSn3EWEfA">