File tree Expand file tree Collapse file tree 1 file changed +12
-2
lines changed Expand file tree Collapse file tree 1 file changed +12
-2
lines changed Original file line number Diff line number Diff line change @@ -64,7 +64,12 @@ bool Synchronizer::isProbablyOutdatedStubs(const fs::path &srcFilePath) const {
64
64
} catch (...) {
65
65
return true ;
66
66
}
67
- srcTimestamp = Synchronizer::getFileOutdatedTime (srcFilePath);
67
+ if (!fs::exists (srcFilePath)){
68
+ srcTimestamp = time (NULL );
69
+ }
70
+ else {
71
+ srcTimestamp = Synchronizer::getFileOutdatedTime (srcFilePath);
72
+ }
68
73
return stubTimestamp <= srcTimestamp;
69
74
}
70
75
@@ -75,7 +80,12 @@ bool Synchronizer::isProbablyOutdatedWrappers(const fs::path &srcFilePath) const
75
80
}
76
81
long long wrapperTimestamp, srcTimestamp;
77
82
wrapperTimestamp = Synchronizer::getFileOutdatedTime (wrapperFilePath);
78
- srcTimestamp = Synchronizer::getFileOutdatedTime (srcFilePath);
83
+ if (!fs::exists (srcFilePath)){
84
+ srcTimestamp = time (NULL );
85
+ }
86
+ else {
87
+ srcTimestamp = Synchronizer::getFileOutdatedTime (srcFilePath);
88
+ }
79
89
return wrapperTimestamp <= srcTimestamp;
80
90
}
81
91
You can’t perform that action at this time.
0 commit comments