From 59fe80602e95cb9068ed18ad3dd2581029b91a37 Mon Sep 17 00:00:00 2001 From: miebka <86464051+miebka@users.noreply.github.com> Date: Sat, 11 Sep 2021 23:30:35 +0200 Subject: [PATCH] C2000: Added depfile generation for incremental builds --- mesonbuild/compilers/mixins/c2000.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/mesonbuild/compilers/mixins/c2000.py b/mesonbuild/compilers/mixins/c2000.py index 79f31cce2..172d3d173 100644 --- a/mesonbuild/compilers/mixins/c2000.py +++ b/mesonbuild/compilers/mixins/c2000.py @@ -124,3 +124,6 @@ class C2000Compiler(Compiler): parameter_list[idx] = i[:9] + os.path.normpath(os.path.join(build_dir, i[9:])) return parameter_list + + def get_dependency_gen_args(self, outtarget: str, outfile: str) -> T.List[str]: + return ['--preproc_with_compile', f'--preproc_dependency={outfile}']