diff options
author | Jussi Pakkanen <jpakkane@gmail.com> | 2016-08-18 00:12:54 +0300 |
---|---|---|
committer | Jussi Pakkanen <jpakkane@gmail.com> | 2016-08-18 00:12:54 +0300 |
commit | ccda29794b1802eba9dcd79ec2338407bb045fae (patch) | |
tree | 0a12c52e0db8ead281db1ff148098eeab1249cab | |
parent | b08581d394d0e0102bce2e51c46f16f2102dc8c7 (diff) | |
download | meson-ccda29794b1802eba9dcd79ec2338407bb045fae.zip meson-ccda29794b1802eba9dcd79ec2338407bb045fae.tar.gz meson-ccda29794b1802eba9dcd79ec2338407bb045fae.tar.bz2 |
Make pdb work with pch.
-rw-r--r-- | mesonbuild/backend/ninjabackend.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/mesonbuild/backend/ninjabackend.py b/mesonbuild/backend/ninjabackend.py index 7c47ef4..a42db9f 100644 --- a/mesonbuild/backend/ninjabackend.py +++ b/mesonbuild/backend/ninjabackend.py @@ -1521,7 +1521,8 @@ rule FORTRAN_DEP_HACK commands+= compiler.get_include_args(i, False) if self.environment.coredata.base_options.get('b_pch', False): commands += self.get_pch_include_args(compiler, target) - commands += compiler.get_compile_debugfile_args(rel_obj) + + commands += compiler.get_compile_debugfile_args(self.get_target_filename_abs(target)) crstr = '' if target.is_cross: crstr = '_CROSS' @@ -1590,6 +1591,8 @@ rule FORTRAN_DEP_HACK just_name = os.path.split(header)[1] (objname, pch_args) = compiler.gen_pch_args(just_name, source, dst) commands += pch_args + tfilename = self.get_target_filename_abs(target) + commands += compiler.get_compile_debugfile_args(tfilename) dep = dst + '.' + compiler.get_depfile_suffix() return (commands, dep, dst, [objname]) |