diff options
Diffstat (limited to 'backends.py')
-rw-r--r-- | backends.py | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/backends.py b/backends.py index 563557d..81062f9 100644 --- a/backends.py +++ b/backends.py @@ -220,7 +220,12 @@ class Backend(): if is_unity: unity_src.append(src) else: - obj_list.append(self.generate_single_compile(target, outfile, src, True)) + # Generated targets are ordered deps because the must exist + # before the sources compiling them are used. After the first + # compile we get precise dependency info from dep files. + # This should work in all cases. If it does not, then just + # move them from orderdeps to proper deps. + obj_list.append(self.generate_single_compile(target, outfile, src, True, [], header_deps)) for src in target.get_sources(): if not self.environment.is_header(src): src_list.append(src) @@ -229,7 +234,7 @@ class Backend(): target.get_subdir(), src) unity_src.append(abs_src) else: - obj_list.append(self.generate_single_compile(target, outfile, src, False, header_deps)) + obj_list.append(self.generate_single_compile(target, outfile, src, False, [], header_deps)) obj_list += self.flatten_object_list(target) if is_unity: for src in self.generate_unity_files(target, unity_src): |