提交 0b1ce92c 编写于 作者: A apetrusenko

6854027: Precompiled headers are not being updated in Linux/GCC builds

Summary: Fixes incorrect handling of precompiled headers in diff mode.
Reviewed-by: never, twisti
上级 502bb88f
/* /*
* Copyright 1999-2005 Sun Microsystems, Inc. All Rights Reserved. * Copyright 1999-2009 Sun Microsystems, Inc. All Rights Reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
* *
* This code is free software; you can redistribute it and/or modify it * This code is free software; you can redistribute it and/or modify it
...@@ -39,7 +39,6 @@ public class Database { ...@@ -39,7 +39,6 @@ public class Database {
private HashMap<String,String> platformDepFiles; private HashMap<String,String> platformDepFiles;
private long threshold; private long threshold;
private int nOuterFiles; private int nOuterFiles;
private int nPrecompiledFiles;
private boolean missingOk; private boolean missingOk;
private Platform plat; private Platform plat;
/** These allow you to specify files not in the include database /** These allow you to specify files not in the include database
...@@ -62,7 +61,6 @@ public class Database { ...@@ -62,7 +61,6 @@ public class Database {
threshold = t; threshold = t;
nOuterFiles = 0; nOuterFiles = 0;
nPrecompiledFiles = 0;
missingOk = false; missingOk = false;
firstFile = null; firstFile = null;
lastFile = null; lastFile = null;
...@@ -343,7 +341,6 @@ public class Database { ...@@ -343,7 +341,6 @@ public class Database {
plat.getGIFileTemplate().getInvDir() + plat.getGIFileTemplate().getInvDir() +
list.getName() + list.getName() +
"\""); "\"");
nPrecompiledFiles += 1;
} }
} }
inclFile.println(); inclFile.println();
...@@ -408,22 +405,22 @@ public class Database { ...@@ -408,22 +405,22 @@ public class Database {
gd.println(); gd.println();
} }
if (nPrecompiledFiles > 0) { // write Precompiled_Files = ...
// write Precompiled_Files = ... gd.println("Precompiled_Files = \\");
gd.println("Precompiled_Files = \\"); for (Iterator iter = grandInclude.iterator(); iter.hasNext(); ) {
for (Iterator iter = grandInclude.iterator(); iter.hasNext(); ) { FileList list = (FileList) iter.next();
FileList list = (FileList) iter.next(); if (list.getCount() >= threshold) {
gd.println(list.getName() + " \\"); gd.println(list.getName() + " \\");
String platformDep = platformDepFiles.get(list.getName()); String platformDep = platformDepFiles.get(list.getName());
if (platformDep != null) { if (platformDep != null) {
// make sure changes to the platform dependent file will // make sure changes to the platform dependent file will
// cause regeneration of the pch file. // cause regeneration of the pch file.
gd.println(platformDep + " \\"); gd.println(platformDep + " \\");
} }
} }
gd.println();
gd.println();
} }
gd.println();
gd.println();
gd.println("DTraced_Files = \\"); gd.println("DTraced_Files = \\");
for (Iterator iter = outerFiles.iterator(); iter.hasNext(); ) { for (Iterator iter = outerFiles.iterator(); iter.hasNext(); ) {
...@@ -483,7 +480,6 @@ public class Database { ...@@ -483,7 +480,6 @@ public class Database {
} }
if (plat.includeGIDependencies() if (plat.includeGIDependencies()
&& nPrecompiledFiles > 0
&& anII.getUseGrandInclude()) { && anII.getUseGrandInclude()) {
gd.println(" $(Precompiled_Files) \\"); gd.println(" $(Precompiled_Files) \\");
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册