[petsc-users] compile PETSc on win using clang
Satish Balay
balay at mcs.anl.gov
Tue Jan 24 16:00:11 CST 2023
https://www.wikihow.com/Install-Clang-on-Windows
Is the clang you have from visual studio - as described above?
We don't have experience with using this variant of clang.
If its compatible with 'cl' - and supports the same command interface as 'cl' then the following might work [assuming clang.exe is the compiler binary installed - and available in PATH]:
'--with-cc=win32fe cl --use clang'
Satish
On Tue, 24 Jan 2023, Barry Smith wrote:
>
> Are you using clang as a replacement for the
>
> * "Unix-like" Cygwin GNU compilers compilers or
>
> * MinGW GNU compilers that are compatible with the Microsoft compilers?
>
> If the former, follow the instructions for using the Cygwin GNU compilers, if the latter follow the directions for the MinGW compilers.
>
> Send the configure.log and make.log if things go wrong and we'll help you out.
>
> Barry
>
>
>
>
> > On Jan 24, 2023, at 4:01 PM, Guo, Sam <sam.guo at siemens.com> wrote:
> >
> > Hi PETSc dev team,
> > I try to compile PETSc on win using clang. I am wondering if you could give me some hint. (I’ve already made intel compiler work on win using win32fe icl).
> >
> > Thanks,
> > Sam Guo
>
>
More information about the petsc-users
mailing list