S_overrides.mk is included twice when building #360

A different approach.  Instead of trying to limit the number of times
S_overrides.mk is included, combine the makefiles so only one
call to make is made.
This commit is contained in:
Alex Lin
2017-02-09 09:42:16 -06:00
parent 3db5056db3
commit 337139cacb
7 changed files with 137 additions and 47 deletions

View File

@ -54,8 +54,14 @@ void FindTrickICG::If(clang::SourceLocation Loc, clang::SourceRange ConditionRan
if ( print_msgs ) {
print_header() ;
std::string loc_str = Loc.printToString(ci.getSourceManager()) ;
std::cout << color(WARNING,
std::string("Warning: TRICK_ICG used in preprocessor conditional ") + loc_str) << std::endl ;
char * rpath = almostRealPath(loc_str.c_str()) ;
if ( rpath ) {
std::cout << color(WARNING,
std::string("Warning: TRICK_ICG used in preprocessor conditional ") + rpath) << std::endl ;
} else {
std::cout << color(WARNING,
std::string("Warning: TRICK_ICG used in preprocessor conditional ") + loc_str) << std::endl ;
}
}
}
}