diff options
author | Jussi Pakkanen <jpakkane@gmail.com> | 2018-03-01 21:52:30 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-03-01 21:52:30 +0200 |
commit | a383c5c1a5821b87abaa93ea083ca96317b410ff (patch) | |
tree | 3ea1be716edbc2e79adb932748e777774056ecd3 /mesonbuild/backend/ninjabackend.py | |
parent | 5f0aeafa387894b0893877a92db5122b86c2244d (diff) | |
parent | e0d0c0166a5d9ab008de43ad65cedd529e5e16a6 (diff) | |
download | meson-a383c5c1a5821b87abaa93ea083ca96317b410ff.zip meson-a383c5c1a5821b87abaa93ea083ca96317b410ff.tar.gz meson-a383c5c1a5821b87abaa93ea083ca96317b410ff.tar.bz2 |
Merge pull request #3150 from trhd/setups2
Fix a data pickling bug.
Diffstat (limited to 'mesonbuild/backend/ninjabackend.py')
-rw-r--r-- | mesonbuild/backend/ninjabackend.py | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/mesonbuild/backend/ninjabackend.py b/mesonbuild/backend/ninjabackend.py index 8577bc7..660b1a5 100644 --- a/mesonbuild/backend/ninjabackend.py +++ b/mesonbuild/backend/ninjabackend.py @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -import os, pickle, re, shlex, subprocess, sys +import os, pickle, re, shlex, subprocess from collections import OrderedDict from pathlib import PurePath @@ -115,7 +115,6 @@ class NinjaBuildElement: (name, elems) = e should_quote = name not in raw_names line = ' %s = ' % name - noq_templ = "%s" newelems = [] for i in elems: if not should_quote or i == '&&': # Hackety hack hack @@ -1852,7 +1851,6 @@ rule FORTRAN_DEP_HACK infilelist = genlist.get_inputs() outfilelist = genlist.get_outputs() extra_dependencies = [os.path.join(self.build_to_src, i) for i in genlist.extra_depends] - source_target_dir = self.get_target_source_dir(target) for i in range(len(infilelist)): if len(generator.outputs) == 1: sole_output = os.path.join(self.get_target_private_dir(target), outfilelist[i]) @@ -1877,7 +1875,6 @@ rule FORTRAN_DEP_HACK # We have consumed output files, so drop them from the list of remaining outputs. if sole_output == '': outfilelist = outfilelist[len(generator.outputs):] - relout = self.get_target_private_dir(target) args = self.replace_paths(target, args, override_subdir=subdir) cmdlist = exe_arr + self.replace_extra_args(args, genlist) if generator.capture: @@ -2694,3 +2691,9 @@ rule FORTRAN_DEP_HACK elem = NinjaBuildElement(self.all_outputs, deps, 'phony', '') elem.write(outfile) + +def load(build_dir): + filename = os.path.join(build_dir, 'meson-private', 'install.dat') + with open(filename, 'rb') as f: + obj = pickle.load(f) + return obj |