<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Issue</th>
<td>
<a href=https://github.com/llvm/llvm-project/issues/62993>62993</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>
Improvement Request: Clarification on Building OpenMP - `-DLLVM_ENABLE_PROJECTS` or `-DLLVM_ENABLE_RUNTIMES`
</td>
</tr>
<tr>
<th>Labels</th>
<td>
openmp,
flang
</td>
</tr>
<tr>
<th>Assignees</th>
<td>
</td>
</tr>
<tr>
<th>Reporter</th>
<td>
unterumarmung
</td>
</tr>
</table>
<pre>
I would like to suggest a clarification regarding the appropriate method for building OpenMP within LLVM. Based on the discussions in the following topics:
- [**Discourse:** Cannot build a debug version of LLVM due to libopenmptarget problem](https://discourse.llvm.org/t/cannot-build-a-debug-version-of-llvm-due-to-libopenmptarget-problem/70851)
- [**Discourse:** OpenMP project or runtime?](https://discourse.llvm.org/t/openmp-project-or-runtime/70886)
It is recommended that OpenMP be built as a runtime, as it relies on freshly-built Clang and LLVM tools. However, I have come across three instances where it is suggested to be built as a project.
- [Getting Started — The Flang Compiler](https://flang.llvm.org/docs/GettingStarted.html#building-flang-in-tree)
- https://github.com/llvm/llvm-project/blob/main/clang/utils/analyzer/entrypoint.py#L56
- https://github.com/llvm/llvm-project/blob/main/llvm/utils/release/build_llvm_release.bat#L155
To avoid confusion and ensure consistency, it would be beneficial to update the relevant documentation and scripts to reflect the recommended approach of building OpenMP as a runtime.
Thank you for your attention to this matter.
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJysVU1v4zYQ_TX0ZSBDpmzHPviQOFGbIvuBbNprQIkjiV2Ko5JDB-6vL0jb2Wy2hy7QiwyTw3mPM28eVQimd4g7sboRq9uZijyQ30XH6OOo_BhdP2tIH3f38ELRarDmKwIThNj3GBgUtFZ505lWsSEHHnvltXE98ICgpsnT5I1ihBF5IA0deWiisTnm04Tuw2d4MTwYBw8Pf3yYw40KqIFcTqBNaGMIhlwAc1rqyFp6yQg0mTaI6lqUt6I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