[prev in list] [next in list] [prev in thread] [next in thread] 

List:       boost-build
Subject:    Re: [Boost-build] [v2] Using Fortran to Link Executable Main
From:       "Noel Belcourt" <kbelco () sandia ! gov>
Date:       2006-04-27 22:51:02
Message-ID: b299e733a07ab053f695431116f7e6d8 () sandia ! gov
[Download RAW message or body]


On Apr 26, 2006, at 3:16 AM, Vladimir Prus wrote:

> On Wednesday 26 April 2006 13:01, ANDREW MARLOW, BLOOMBERG/ LONDON OF 
> wrote:
>
>> No. (b)jam has insufficient support for FORTRAN,
>> at least last time I looked. It needs to be able
>> to calculate build dependencies by processing
>> include stmts, similar to what it does for #include
>> with C and C++ source. And of course, as in C/C++,
>> a FORTRAN header may include one or more other FORTRAN headers.

In our case, all of our Fortran is 77 so we always invoke the Fortran 
compiler to preprocess the Fortran source with the C preprocessor 
(cpp).  This allows use to use #define and #include in our Fortran 
source.  Naturally this won't work in all cases.

> Adding dependency scanning for fortran should be easy to somebody who 
> knows
> the syntax. The c scanner in builtin.jam is a good base, so one has to 
> move
> declaration of fortran type of tools/types/fortran.jam, copy-paste the 
> c
> scanner to that file, and adjust the regular expressions used for 
> scanning.

I'll give this a try and let you know how it goes.

-- Noel



[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic