Skip to content
This repository was archived by the owner on Jun 15, 2023. It is now read-only.

Commit f7e207f

Browse files
committedSep 29, 2020
remove deps support
1 parent b9b38f9 commit f7e207f

File tree

3 files changed

+12
-6
lines changed

3 files changed

+12
-6
lines changed
 

‎src/build.cc

+8-4
Original file line numberDiff line numberDiff line change
@@ -943,6 +943,7 @@ bool Builder::FinishCommand(CommandRunner::Result* result, string* err) {
943943
// extraction itself can fail, which makes the command fail from a
944944
// build perspective.
945945
vector<Node*> deps_nodes;
946+
#if 0
946947
string deps_type = edge->GetBinding("deps");
947948
const string deps_prefix = edge->GetBinding("msvc_deps_prefix");
948949
if (!deps_type.empty()) {
@@ -956,7 +957,7 @@ bool Builder::FinishCommand(CommandRunner::Result* result, string* err) {
956957
result->status = ExitFailure;
957958
}
958959
}
959-
960+
#endif
960961
int start_time, end_time;
961962
status_->BuildEdgeFinished(edge, result->success(), result->output,
962963
&start_time, &end_time);
@@ -1003,7 +1004,7 @@ bool Builder::FinishCommand(CommandRunner::Result* result, string* err) {
10031004
}
10041005

10051006
string depfile = edge->GetUnescapedDepfile();
1006-
if (restat_mtime != 0 && deps_type.empty() && !depfile.empty()) {
1007+
if (restat_mtime != 0 && /* deps_type.empty() && */ !depfile.empty()) {
10071008
TimeStamp depfile_mtime = disk_interface_->Stat(depfile, err);
10081009
if (depfile_mtime == -1)
10091010
return false;
@@ -1035,6 +1036,7 @@ bool Builder::FinishCommand(CommandRunner::Result* result, string* err) {
10351036
}
10361037
}
10371038

1039+
#if 0
10381040
if (!deps_type.empty() && !config_.dry_run) {
10391041
assert(edge->outputs_.size() == 1 && "should have been rejected by parser");
10401042
Node* out = edge->outputs_[0];
@@ -1046,9 +1048,11 @@ bool Builder::FinishCommand(CommandRunner::Result* result, string* err) {
10461048
return false;
10471049
}
10481050
}
1051+
#endif
1052+
10491053
return true;
10501054
}
1051-
1055+
#if 0
10521056
bool Builder::ExtractDeps(CommandRunner::Result* result,
10531057
const string& deps_type,
10541058
const string& deps_prefix,
@@ -1117,7 +1121,7 @@ bool Builder::ExtractDeps(CommandRunner::Result* result,
11171121

11181122
return true;
11191123
}
1120-
1124+
#endif
11211125
bool Builder::LoadDyndeps(Node* node, string* err) {
11221126
status_->BuildLoadDyndeps();
11231127

‎src/build.h

+2-1
Original file line numberDiff line numberDiff line change
@@ -224,10 +224,11 @@ struct Builder {
224224
BuildStatus* status_;
225225

226226
private:
227+
#if 0
227228
bool ExtractDeps(CommandRunner::Result* result, const string& deps_type,
228229
const string& deps_prefix, vector<Node*>* deps_nodes,
229230
string* err);
230-
231+
#endif
231232
DiskInterface* disk_interface_;
232233
DependencyScan scan_;
233234

‎src/ninja.cc

+2-1
Original file line numberDiff line numberDiff line change
@@ -1059,6 +1059,7 @@ bool NinjaMain::OpenBuildLog(bool recompact_only) {
10591059
/// Open the deps log: load it, then open for writing.
10601060
/// @return false on error.
10611061
bool NinjaMain::OpenDepsLog(bool recompact_only) {
1062+
#if 0
10621063
string path = ".ninja_deps";
10631064
if (!build_dir_.empty())
10641065
path = build_dir_ + "/" + path;
@@ -1087,7 +1088,7 @@ bool NinjaMain::OpenDepsLog(bool recompact_only) {
10871088
return false;
10881089
}
10891090
}
1090-
1091+
#endif
10911092
return true;
10921093
}
10931094

0 commit comments

Comments
 (0)
This repository has been archived.