@@ -142,12 +142,12 @@ struct NinjaMain : public BuildLogUser {
142
142
// / Ensure the build directory exists, creating it if necessary.
143
143
// / @return false on error.
144
144
bool EnsureBuildDirExists ();
145
-
145
+ # if 0
146
146
/// Rebuild the manifest, if necessary.
147
147
/// Fills in \a err on error.
148
148
/// @return true if the manifest was rebuilt.
149
149
bool RebuildManifest(const char* input_file, string* err);
150
-
150
+ # endif
151
151
// / Build the targets listed on the command line.
152
152
// / @return an exit code.
153
153
int RunBuild (int argc, char ** argv);
@@ -239,7 +239,7 @@ int GuessParallelism() {
239
239
return processors + 2 ;
240
240
}
241
241
}
242
-
242
+ # if 0
243
243
/// Rebuild the build manifest, if necessary.
244
244
/// Returns true if the manifest was rebuilt.
245
245
bool NinjaMain::RebuildManifest(const char* input_file, string* err) {
@@ -272,7 +272,7 @@ bool NinjaMain::RebuildManifest(const char* input_file, string* err) {
272
272
273
273
return true;
274
274
}
275
-
275
+ # endif
276
276
Node* NinjaMain::CollectTarget (const char * cpath, string* err) {
277
277
string path = cpath;
278
278
uint64_t slash_bits;
@@ -1366,8 +1366,9 @@ NORETURN void real_main(int argc, char** argv) {
1366
1366
// TODO: make it configurable
1367
1367
ninja.ToolCleanDead (&options,argc,argv);
1368
1368
1369
+ #if 0
1369
1370
// Attempt to rebuild the manifest before building anything else
1370
- if (false && ninja.RebuildManifest (options.input_file , &err)) {
1371
+ if (ninja.RebuildManifest(options.input_file, &err)) {
1371
1372
// In dry_run mode the regeneration will succeed without changing the
1372
1373
// manifest forever. Better to return immediately.
1373
1374
if (config.dry_run)
@@ -1378,7 +1379,7 @@ NORETURN void real_main(int argc, char** argv) {
1378
1379
Error("rebuilding '%s': %s", options.input_file, err.c_str());
1379
1380
exit(1);
1380
1381
}
1381
-
1382
+ # endif
1382
1383
int result = ninja.RunBuild (argc, argv);
1383
1384
if (g_metrics)
1384
1385
ninja.DumpMetrics ();
0 commit comments