aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEli Schwartz <eschwartz@archlinux.org>2023-03-27 16:19:27 -0400
committerEli Schwartz <eschwartz@archlinux.org>2023-03-27 16:34:49 -0400
commit416b3bae4d56660edea9a9b61dfbf2208866198b (patch)
tree5574afa336659441e77f397431892be05689ce20
parent9980b2a2d1b54674b9bb79ea811ab755e1046dba (diff)
downloadmeson-416b3bae4d56660edea9a9b61dfbf2208866198b.zip
meson-416b3bae4d56660edea9a9b61dfbf2208866198b.tar.gz
meson-416b3bae4d56660edea9a9b61dfbf2208866198b.tar.bz2
debug0.tryme
-rw-r--r--mesonbuild/backend/backends.py2
-rw-r--r--test cases/common/195 generator in subdir/com/mesonbuild/testprog.c2
2 files changed, 3 insertions, 1 deletions
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;
}