diff options
author | Jussi Pakkanen <jpakkane@gmail.com> | 2015-12-07 21:52:08 +0200 |
---|---|---|
committer | Jussi Pakkanen <jpakkane@gmail.com> | 2015-12-07 21:52:08 +0200 |
commit | 7ed515dacc726b6413ff720b7c125670b60543a1 (patch) | |
tree | cfb85bc0fa21af2c3ecb1569aab5bf61ac508023 /compilers.py | |
parent | d92504797f50ea3a4abcd8f8d0ee1d903abca8af (diff) | |
download | meson-7ed515dacc726b6413ff720b7c125670b60543a1.zip meson-7ed515dacc726b6413ff720b7c125670b60543a1.tar.gz meson-7ed515dacc726b6413ff720b7c125670b60543a1.tar.bz2 |
Refactored dep file name so Swift dependency tracking works.
Diffstat (limited to 'compilers.py')
-rw-r--r-- | compilers.py | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/compilers.py b/compilers.py index d297592..41c4ecd 100644 --- a/compilers.py +++ b/compilers.py @@ -215,6 +215,9 @@ class CCompiler(Compiler): def get_dependency_gen_args(self, outtarget, outfile): return ['-MMD', '-MQ', outtarget, '-MF', outfile] + def depfile_for_object(self, objfile): + return objfile + '.' + self.get_depfile_suffix() + def get_depfile_suffix(self): return 'd' @@ -985,6 +988,9 @@ class SwiftCompiler(Compiler): def get_dependency_gen_args(self, outtarget, outfile): return ['-emit-dependencies'] + def depfile_for_object(self, objfile): + return os.path.splitext(objfile)[0] + '.' + self.get_depfile_suffix() + def get_depfile_suffix(self): return 'd' @@ -1562,6 +1568,9 @@ end program prog def get_module_outdir_args(self, path): return ['-J' + path] + def depfile_for_object(self, objfile): + return objfile + '.' + self.get_depfile_suffix() + def get_depfile_suffix(self): return 'd' |