mirror of
https://github.com/gbdev/rgbds.git
synced 2025-11-20 18:22:07 +00:00
Print dependencies of all included files
Files that weren't found with the absolute path weren't added as dependencies even if they were found after considering the list of include directories. This patch makes rgbasm print the complete path (including the include directory path) in these cases. Signed-off-by: Antonio Niño Díaz <antonio_nd@outlook.com>
This commit is contained in:
@@ -217,6 +217,9 @@ fstk_FindFile(char *fname)
|
|||||||
}
|
}
|
||||||
|
|
||||||
if ((f = fopen(path, "rb")) != NULL || errno != ENOENT) {
|
if ((f = fopen(path, "rb")) != NULL || errno != ENOENT) {
|
||||||
|
if (dependfile) {
|
||||||
|
fprintf(dependfile, "%s: %s\n", tzObjectname, path);
|
||||||
|
}
|
||||||
return f;
|
return f;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user