From 6a3a4cbae390e66f6da06b5f3b03a9298734548d Mon Sep 17 00:00:00 2001 From: Sebastian Reitenbach Date: Fri, 30 Aug 2024 22:48:28 +0200 Subject: [PATCH] When there are files with absolute Paths in the PCProjectBuilder error output, then the current buildPath is prepended, which is wrong. Before prepending that, check if the file isAbsolutePath, and only prepend buildPath, when not. --- Framework/PCProjectBuilder.m | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/Framework/PCProjectBuilder.m b/Framework/PCProjectBuilder.m index e6db521d..a3d01fc9 100644 --- a/Framework/PCProjectBuilder.m +++ b/Framework/PCProjectBuilder.m @@ -1145,9 +1145,16 @@ - (NSArray *)parseErrorLine:(NSString *)string {// first message after "In file included from" // NSLog(@"Inlcuded File: %@", file); includedFile = [components objectAtIndex:0]; - file = - [currentBuildPath stringByAppendingPathComponent:includedFile]; - currentEL = ELIncludedError; + if ([includedFile isAbsolutePath]) + { + file = includedFile; + } + else + { + file = + [currentBuildPath stringByAppendingPathComponent:includedFile]; + currentEL = ELIncludedError; + } } else {