aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEli Schwartz <eschwartz@archlinux.org>2023-06-25 02:09:14 -0400
committerEli Schwartz <eschwartz@archlinux.org>2023-06-25 12:12:11 -0400
commitcd6c3ca55e6a3d6e4b40bac3aa3324c467285095 (patch)
tree3956ed7638cae753369707c07b5c6cf59ce7ec95
parenta53c6687b65fd91fa4a85a596ba365cb4cfa6467 (diff)
downloadmeson-cd6c3ca55e6a3d6e4b40bac3aa3324c467285095.zip
meson-cd6c3ca55e6a3d6e4b40bac3aa3324c467285095.tar.gz
meson-cd6c3ca55e6a3d6e4b40bac3aa3324c467285095.tar.bz2
msetup: place profiling logs in the log directory
-rw-r--r--mesonbuild/msetup.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/mesonbuild/msetup.py b/mesonbuild/msetup.py
index 2a559d8..263ce19 100644
--- a/mesonbuild/msetup.py
+++ b/mesonbuild/msetup.py
@@ -233,7 +233,7 @@ class MesonApp:
logger_fun('Target machine cpu:', mlog.bold(target_machine.cpu_method([], {})))
try:
if self.options.profile:
- fname = os.path.join(self.build_dir, 'meson-private', 'profile-interpreter.log')
+ fname = os.path.join(self.build_dir, 'meson-logs', 'profile-interpreter.log')
profile.runctx('intr.run()', globals(), locals(), filename=fname)
else:
intr.run()
@@ -255,7 +255,7 @@ class MesonApp:
self.finalize_postconf_hooks(b, intr)
if self.options.profile:
fname = f'profile-{intr.backend.name}-backend.log'
- fname = os.path.join(self.build_dir, 'meson-private', fname)
+ fname = os.path.join(self.build_dir, 'meson-logs', fname)
profile.runctx('intr.backend.generate()', globals(), locals(), filename=fname)
else:
intr.backend.generate()
@@ -271,7 +271,7 @@ class MesonApp:
# Generate an IDE introspection file with the same syntax as the already existing API
if self.options.profile:
- fname = os.path.join(self.build_dir, 'meson-private', 'profile-introspector.log')
+ fname = os.path.join(self.build_dir, 'meson-logs', 'profile-introspector.log')
profile.runctx('mintro.generate_introspection_file(b, intr.backend)', globals(), locals(), filename=fname)
else:
mintro.generate_introspection_file(b, intr.backend)