GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — msetup: fix regression under py3.13 causing profile.runctx to not wri… · eli-schwartz/meson@0eb1276

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • mesonbuild
    • msetup.py
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎mesonbuild/msetup.py‎

Copy file name to clipboardExpand all lines: mesonbuild/msetup.py
+3-2Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -242,10 +242,11 @@ def _generate(self, env: environment.Environment, capture: bool, vslite_ctx: T.O
242242

243243
self.finalize_postconf_hooks(b, intr)
244244
if self.options.profile:
245+
localvars = locals()
245246
fname = f'profile-{intr.backend.name}-backend.log'
246247
fname = os.path.join(self.build_dir, 'meson-logs', fname)
247-
profile.runctx('gen_result = intr.backend.generate(capture, vslite_ctx)', globals(), locals(), filename=fname)
248-
captured_compile_args = locals()['gen_result']
248+
profile.runctx('gen_result = intr.backend.generate(capture, vslite_ctx)', globals(), localvars, filename=fname)
249+
captured_compile_args = localvars['gen_result']
249250
assert captured_compile_args is None or isinstance(captured_compile_args, dict)
250251
else:
251252
captured_compile_args = intr.backend.generate(capture, vslite_ctx)

0 commit comments

Comments
0 (0)
You are visitor 01402605 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.