From 416b3bae4d56660edea9a9b61dfbf2208866198b Mon Sep 17 00:00:00 2001 From: Eli Schwartz Date: Mon, 27 Mar 2023 16:19:27 -0400 Subject: debug --- mesonbuild/backend/backends.py | 2 ++ test cases/common/195 generator in subdir/com/mesonbuild/testprog.c | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/mesonbuild/backend/backends.py b/mesonbuild/backend/backends.py index fa1629b..b70a9b1 100644 --- a/mesonbuild/backend/backends.py +++ b/mesonbuild/backend/backends.py @@ -606,6 +606,7 @@ class Backend: can_use_env = not force_serialize force_serialize = force_serialize or bool(reasons) + mlog.log(f'exe={exe!r}') if capture: reasons.append('to capture output') if feed: @@ -654,6 +655,7 @@ class Backend: digest = hasher.hexdigest() scratch_file = f'meson_exe_{basename}_{digest}.dat' exe_data = os.path.join(self.environment.get_scratch_dir(), scratch_file) + mlog.log(f'scratch_file={scratch_file!r} exe_data={exe_data!r}') with open(exe_data, 'wb') as f: pickle.dump(es, f) return (self.environment.get_build_command() + ['--internal', 'exe', '--unpickle', exe_data], diff --git a/test cases/common/195 generator in subdir/com/mesonbuild/testprog.c b/test cases/common/195 generator in subdir/com/mesonbuild/testprog.c index 7a7cdf7..7ae535f 100644 --- a/test cases/common/195 generator in subdir/com/mesonbuild/testprog.c +++ b/test cases/common/195 generator in subdir/com/mesonbuild/testprog.c @@ -1,5 +1,5 @@ #include"subbie.h" int main(void) { - return subbie(); + return 1; } -- cgit v1.1