# Build ParaView with LLVM on Windows

**URL:** https://discourse.paraview.org/t/build-paraview-with-llvm-on-windows/9790
**Category:** Development
**Created:** [June 10, 2022, 10:20pm UTC](https://discourse.paraview.org/t/build-paraview-with-llvm-on-windows/9790 "2022-06-10T22:20:23Z")
**Posts on this page:** 7
**Page:** 1

<div class="post-metadata">

### Author: ![Cam](https://discourse.paraview.org/user_avatar/discourse.paraview.org/cam/32/8343_2.png) [@Cam](https://discourse.paraview.org/u/Cam)
#### Post date: [June 10, 2022, 10:20pm UTC](https://discourse.paraview.org/t/build-paraview-with-llvm-on-windows/9790/1 "2022-06-10T22:20:23Z")

</div>

Has anyone tried to use LLVM (with clang) to build ParaView on Windows platform and succeeded? I just don’t want to use MSVC anymore…

---

<div class="post-metadata">

### Author: ![jaswantp](https://discourse.paraview.org/user_avatar/discourse.paraview.org/jaswantp/32/11456_2.png) [@jaswantp](https://discourse.paraview.org/u/jaswantp)
#### Post date: [June 13, 2022, 4:54pm UTC](https://discourse.paraview.org/t/build-paraview-with-llvm-on-windows/9790/2 "2022-06-13T16:54:15Z")

</div>

I do not think it’s worthwhile. The last time I tried, besides many warnings there was an error from vtkTableFFT. Something to do with a constexpr std::array not being const.

---

<div class="post-metadata">

### Author: ![mwestphal](https://discourse.paraview.org/user_avatar/discourse.paraview.org/mwestphal/32/17_2.png) [@mwestphal](https://discourse.paraview.org/u/mwestphal)
#### Post date: [June 14, 2022, 12:59pm UTC](https://discourse.paraview.org/t/build-paraview-with-llvm-on-windows/9790/3 "2022-06-14T12:59:59Z")

</div>

@Cam

I suggest you to build using the Native VS command line. No need to use MSVC this way.

Best,

---

<div class="post-metadata">

### Author: ![ben.boeckel](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/b/ea5d25/32.png) [@ben.boeckel](https://discourse.paraview.org/u/ben.boeckel)
#### Post date: [June 14, 2022, 2:35pm UTC](https://discourse.paraview.org/t/build-paraview-with-llvm-on-windows/9790/4 "2022-06-14T14:35:37Z")

</div>

> [@mwestphal](#):
>
> I suggest you to build using the Native VS command line. No need to use MSVC this way.

How would using the native VS command line not use MSVC? Do you mean the Visual Studio generator?

---

<div class="post-metadata">

### Author: ![jaswantp](https://discourse.paraview.org/user_avatar/discourse.paraview.org/jaswantp/32/11456_2.png) [@jaswantp](https://discourse.paraview.org/u/jaswantp)
#### Post date: [June 14, 2022, 2:40pm UTC](https://discourse.paraview.org/t/build-paraview-with-llvm-on-windows/9790/5 "2022-06-14T14:40:02Z")

</div>

Native vs command line uses msvc (i.e, cl.exe and friends)

---

<div class="post-metadata">

### Author: ![mwestphal](https://discourse.paraview.org/user_avatar/discourse.paraview.org/mwestphal/32/17_2.png) [@mwestphal](https://discourse.paraview.org/u/mwestphal)
#### Post date: [June 14, 2022, 2:42pm UTC](https://discourse.paraview.org/t/build-paraview-with-llvm-on-windows/9790/6 "2022-06-14T14:42:53Z")

</div>

You still use msvc compiler but can use another generator like ninja if you want or the MSVC generator. All that outside of MSVC itself.

It is documented here:

[https://gitlab.kitware.com/paraview/paraview/-/blob/master/Documentation/dev/build.md#windows](https://gitlab.kitware.com/paraview/paraview/-/blob/master/Documentation/dev/build.md#windows)

---

<div class="post-metadata">

### Author: ![Cam](https://discourse.paraview.org/user_avatar/discourse.paraview.org/cam/32/8343_2.png) [@Cam](https://discourse.paraview.org/u/Cam)
#### Post date: [June 14, 2022, 4:57pm UTC](https://discourse.paraview.org/t/build-paraview-with-llvm-on-windows/9790/7 "2022-06-14T16:57:58Z")

</div>

Thanks. I am using native VS command line (inside VSCODE with cmake tool). I am just curious about the use of LLVM on Windows platform. It looks like it is not worth the effort.
