Xcode 4 and non-C compilers

Discussion in 'Mac Programming' started by mbarriault, Aug 6, 2011.

  1. mbarriault macrumors regular

    Joined:
    Dec 3, 2008
    #1
    In one of my Xcode projects, I have a single source file in Fortran (the rest are C++), and am trying to find some way of convincing Xcode to compile it. Compiling and linking (even using Clang) work just fine via command-line.

    My initial thought was to add the .f95 file to the "Compile Sources" build phase, then add a build rule that processes Fortran source files with gfortran, but it doesn't even show up in the build log. Anyone have any thoughts on the matter?
     
  2. Mac_Max macrumors 6502

    Joined:
    Mar 8, 2004
    #2
  3. balamw Moderator

    balamw

    Staff Member

    Joined:
    Aug 16, 2005
    Location:
    New England
  4. mbarriault thread starter macrumors regular

    Joined:
    Dec 3, 2008
    #4
    My question isn't Fortran-specific, it could apply to any compiled language unsupported by Xcode. The compiler I've gotten from the R site, but it doesn't add anything to Xcode.
     

Share This Page