mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-07-31 12:55:40 +02:00
Fix to better handle build output parsing random text.
Handle failures when trying to find the resource at the end of a command line when it's not really a command line. Change-Id: I7dc94a2c45c758248d0402c253e077142ee050e3
This commit is contained in:
parent
25d4502b80
commit
fb533553c8
1 changed files with 6 additions and 1 deletions
|
@ -423,7 +423,12 @@ public class GCCToolChain extends PlatformObject implements IToolChain {
|
||||||
if (srcPath.isAbsolute()) {
|
if (srcPath.isAbsolute()) {
|
||||||
uri = srcPath.toUri();
|
uri = srcPath.toUri();
|
||||||
} else {
|
} else {
|
||||||
uri = buildDirectoryURI.resolve(arg);
|
try {
|
||||||
|
uri = buildDirectoryURI.resolve(arg);
|
||||||
|
} catch (IllegalArgumentException e) {
|
||||||
|
// Bad URI
|
||||||
|
continue;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
for (IFile resource : root.findFilesForLocationURI(uri)) {
|
for (IFile resource : root.findFilesForLocationURI(uri)) {
|
||||||
|
|
Loading…
Add table
Reference in a new issue