Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.

building with mpif90 in Xcode 4

zuch
Beginner
495 Views
Is it possible to override Xcode build rules for fortran source files?
I would like to specify my compiler as mpif90 via xcode configuration file. However it seems like Intel Xcode plug-in does not export fortran compiler as an environmental variable.
The build rule is rather explicite and defined as
RuleName = ("CompileFortran", "$(ObjectsDir)/$(SourceFile:base)$(SourceBaseNameUniquefier).o", "$(SourceFile)");
"CompileFortran" implies
ExecPath = "$(DEVELOPER_USR_DIR)/bin/ifort
currently I use IFORT_OTHER_FLAGS varibale to specify additional compiler options.

0 Kudos
2 Replies
TimP
Honored Contributor III
495 Views
One would expect that use of ifort with an open source MPI would require you to rebuild that MPI from source, after configuring to use ifort as the Fortran compiler.
0 Kudos
zuch
Beginner
495 Views
True, but I need to share Xcode project between two machines where open MPI libraries are build with ifort but located at different places.
It turned out it is very simple justneed to add a custom build rule where FORTRAN source files are processed with custom script. (Build Rules -> "copy to target")
0 Kudos
Reply