[Openmp-commits] [openmp] [WIP][flang] Compile proper `omp_lib.mod` from the `openmp/src/include` sources (PR #80874)
Jonathan Peyton via Openmp-commits
openmp-commits at lists.llvm.org
Tue Feb 6 14:50:46 PST 2024
jpeyton52 wrote:
> > For Intel Fortran compiler, there would need to be an additional flag during module compilation, -fpp, to enable preprocessing. I think gfortran is OK without the flag (and they use -cpp). I don't know about other Fortran compilers.
>
> The compiler won't need it, if the extension changed from `f90` to `F90`, because then it would automatically invoke the preprocessor on the file.
Haha! I wasn't aware of this Fortran oddity.
>
> So, may I assume that Intel is generally fine with the change I'm proposing to make the file compilable with Flang?
Yes, the change looks fine.
I suppose you just need to rename the file `omp_lib.f90.var` -> `omp_lib.F90.var` and replace the filename in `openmp/runtime/src/CMakeLists.txt`
https://github.com/llvm/llvm-project/pull/80874
More information about the Openmp-commits
mailing list