mirror of
https://github.com/nasa/trick.git
synced 2025-02-20 17:22:52 +00:00
Immediately add file to md5s after check
Fixes #753 (cherry picked from commit 497f50e1529f849f6254f8772a16ef1edd7cd0cf)
This commit is contained in:
parent
6fc9e5d1ef
commit
893249457f
@ -70,6 +70,7 @@ sub read_files_to_process() {
|
||||
|
||||
# skip duplicate files
|
||||
next if (exists($md5s{$word})) ;
|
||||
$md5s{$word} = md5_hex($word) ;
|
||||
|
||||
# skip system headers that are missed by the compiler -MM flag
|
||||
next if ( $word =~ /^\/usr\/include/ ) ;
|
||||
@ -81,11 +82,7 @@ sub read_files_to_process() {
|
||||
|
||||
# skip paths in TRICK_EXCLUDE
|
||||
foreach my $path ( @exclude_paths ) {
|
||||
if ( $word =~ /^\Q$path\E(.*)/ ) {
|
||||
print "[95mSWIG Skip[39m TRICK_EXCLUDE: [4m$path[24m$1\n" if $verbose_build ;
|
||||
next outer ;
|
||||
}
|
||||
if ( abs_path($word) =~ /^\Q$path\E(.*)/ ) {
|
||||
if ( $word =~ /^\Q$path\E(.*)/ or abs_path($word) =~ /^\Q$path\E(.*)/ ) {
|
||||
print "[95mSWIG Skip[39m TRICK_EXCLUDE: [4m$path[24m$1\n" if $verbose_build ;
|
||||
next outer ;
|
||||
}
|
||||
@ -93,22 +90,15 @@ sub read_files_to_process() {
|
||||
|
||||
# skip paths in TRICK_SWIG_EXCLUDE
|
||||
foreach my $path ( @swig_exclude_paths ) {
|
||||
if ( $word =~ /^\Q$path\E(.*)/ ) {
|
||||
print "[95mSWIG Skip[39m TRICK_SWIG_EXCLUDE: [4m$path[24m$1\n" if $verbose_build ;
|
||||
next outer ;
|
||||
}
|
||||
if ( abs_path($word) =~ /^\Q$path\E(.*)/ ) {
|
||||
if ( $word =~ /^\Q$path\E(.*)/ or abs_path($word) =~ /^\Q$path\E(.*)/ ) {
|
||||
print "[95mSWIG Skip[39m TRICK_SWIG_EXCLUDE: [4m$path[24m$1\n" if $verbose_build ;
|
||||
next outer ;
|
||||
}
|
||||
}
|
||||
|
||||
# we'll be needing this later
|
||||
$md5s{$word} = md5_hex($word) ;
|
||||
|
||||
# separate paths in TRICK_EXT_LIB_DIRS
|
||||
foreach my $path ( @ext_lib_paths ) {
|
||||
if ( $word =~ /^\Q$path\E(.*)/ ) {
|
||||
if ( $word =~ /^\Q$path\E(.*)/ or abs_path($word) =~ /^\Q$path\E(.*)/ ) {
|
||||
print "[95mSWIG Skip[39m TRICK_EXT_LIB_DIRS: [4m$path[24m$1\n" if $verbose_build ;
|
||||
$ext_libs{$word} = 1 ;
|
||||
next outer ;
|
||||
|
Loading…
x
Reference in New Issue
Block a user