mirror of https://github.com/acidanthera/audk.git
Tried to fix EDKT149. Since the issue happened randomly, only long time test can make sure it's really fixed.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@1243 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
parent
3b06f97c13
commit
f496b9b5ce
|
@ -72,7 +72,7 @@ public class IncludePath implements NestElement {
|
|||
@param name The name of include path
|
||||
**/
|
||||
public void setName(String name){
|
||||
this.path = "-I " + name;
|
||||
this.path = " -I " + name;
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
@ -354,16 +354,12 @@ public class MakeDeps extends Task {
|
|||
//
|
||||
String line = null;
|
||||
while ((line = lineReader.readLine()) != null) {
|
||||
Pattern pattern = Pattern.compile(target + "[ ]*:[ ]*(.+)");
|
||||
Matcher matcher = pattern.matcher(line);
|
||||
|
||||
while (matcher.find()) {
|
||||
String[] filePath = line.split(" : ");
|
||||
if (filePath.length == 2) {
|
||||
///
|
||||
/// keep the file name after ":"
|
||||
///
|
||||
String filePath = line.substring(matcher.start(1), matcher.end(1));
|
||||
filePath = cleanupPathName(filePath);
|
||||
lineSet.add(filePath);
|
||||
lineSet.add(cleanupPathName(filePath[1]));
|
||||
}
|
||||
}
|
||||
lineReader.close();
|
||||
|
|
Loading…
Reference in New Issue