shithub: rgbds

Download patch

ref: 739b113f57915fbcb6c3bb10c97cc443b7fce4aa
parent: 64585eebf6386d95feee9efc72f6607244cd073f
author: Antonio Niño Díaz <[email protected]>
date: Mon Apr 17 16:27:58 EDT 2017

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 <[email protected]>

--- a/src/asm/fstack.c
+++ b/src/asm/fstack.c
@@ -217,6 +217,9 @@
 		}
 
 		if ((f = fopen(path, "rb")) != NULL || errno != ENOENT) {
+			if (dependfile) {
+				fprintf(dependfile, "%s: %s\n", tzObjectname, path);
+			}
 			return f;
 		}
 	}