| 92 | } |
| 93 | |
| 94 | bool CheckHash( const HashCheckArguments& query ) |
| 95 | { |
| 96 | { |
| 97 | std::lock_guard scope( s_modifiedOutputsCS ); |
| 98 | if( s_modifiedOutputs.find( query.outputPath ) != s_modifiedOutputs.end() ) |
| 99 | { |
| 100 | return true; |
| 101 | } |
| 102 | } |
| 103 | |
| 104 | auto in = ::GetSourceHash( query.sourcePath.c_str(), query.defines ); |
| 105 | |
| 106 | if( !IsOutputUpToDate( query.outputPath.c_str(), in ) ) |
| 107 | { |
| 108 | std::lock_guard scope( s_modifiedOutputsCS ); |
| 109 | s_modifiedOutputs.insert( query.outputPath ); |
| 110 | } |
| 111 | |
| 112 | return true; |
| 113 | } |
| 114 | |
| 115 | void GetSourceHash( const char* sourcePath, const char* parentData, const char* rootPath, std::set<std::string>& visited, MD5& md5 ) |
| 116 | { |
nothing calls this directly
no test coverage detected