mirror of
https://github.com/nasa/trick.git
synced 2025-06-22 08:50:06 +00:00
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:
@ -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 ;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user