diff options
author | Luca Falavigna <dktrkranz@debian.org> | 2011-02-10 23:06:43 +0100 |
---|---|---|
committer | Luca Falavigna <dktrkranz@debian.org> | 2011-02-10 23:06:43 +0100 |
commit | 8974746208953bcf6ed03be30329c03445dc0706 (patch) | |
tree | c3215c5a3bef68871b5fc1a1cea8de708a236d41 /engine/SCons/Scanner/Fortran.py | |
parent | d474b34e869c73f7dfae5300e81e1721f005ac9b (diff) | |
parent | 8344b122eb4ee8818cde6ef2bb07726a672a2d23 (diff) |
Merge commit 'upstream/2.0.1'
Diffstat (limited to 'engine/SCons/Scanner/Fortran.py')
-rw-r--r-- | engine/SCons/Scanner/Fortran.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/engine/SCons/Scanner/Fortran.py b/engine/SCons/Scanner/Fortran.py index 8d023e7..63d34e4 100644 --- a/engine/SCons/Scanner/Fortran.py +++ b/engine/SCons/Scanner/Fortran.py @@ -26,7 +26,7 @@ This module implements the dependency scanner for Fortran code. # OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION # WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. -__revision__ = "src/engine/SCons/Scanner/Fortran.py 5023 2010/06/14 22:05:46 scons" +__revision__ = "src/engine/SCons/Scanner/Fortran.py 5134 2010/08/16 23:02:40 bdeegan" import re @@ -89,11 +89,11 @@ class F90Scanner(SCons.Scanner.Classic): defmodules = self.cre_def.findall(node.get_text_contents()) # Remove all USE'd module names that are defined in the same file + # (case-insensitively) d = {} for m in defmodules: - d[m] = 1 - modules = [m for m in modules if m not in d] - #modules = self.undefinedModules(modules, defmodules) + d[m.lower()] = 1 + modules = [m for m in modules if m.lower() not in d] # Convert module name to a .mod filename suffix = env.subst('$FORTRANMODSUFFIX') |