Skip to content

Commit e2e5743

Browse files
author
Evgueni Driouk
committed
Fix for header files from gpdsc
1 parent 856fb82 commit e2e5743

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

com.arm.cmsis.pack.project/src/com/arm/cmsis/pack/configuration/RteConfiguration.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -802,6 +802,10 @@ protected String getPathRelativeToProject(ICpFileInfo fi, String absPath, String
802802

803803
if (fi.isGenerated()) {
804804
String baseDir = fConfigInfo.getDir(false);
805+
ICpFile f = fi.getFile();
806+
if (f != null) {
807+
absPath = f.getAbsolutePath(f.getName());
808+
}
805809
if (absPath.startsWith(baseDir)) {
806810
// the file is within project
807811
return ProjectUtils.makePathRelative(absPath, baseDir);

0 commit comments

Comments
 (0)