I’m currently trying to package a project (ELPA) which is using the C preprocessor for its Fortran source code with:
${CPP:-cpp} -P -traditional
Now I’m building for a platform (OSX) where I don’t have GCC’s cpp
but only clang (I can’t install or use GCC’s C compilers, but I have GFortran). I tried with
${CC:-clang} -E -P --traditional-cpp
But didn’t get it to work with the actual Fortran source in the project. Since I’m packaging this project I don’t have much control over their build system (autoconf) or their tool chain support, but I can slightly patch around things (which I’m already doing).
Does anyone here have experience with using clang for preprocessing Fortran source? Also, any hack to get around the preprocessing issue would be appreciated as well ;).
In case anyone is interested, here is my attempt to build ELPA on OSX: Support build for OSX by awvwgk · Pull Request #1 · conda-forge/elpa-feedstock · GitHub