- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.
Link Copied
2 Replies
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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")

Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page