[llvm] [lit] Run builtin cat / diff in-process instead of spawning (PR #208024)

Prasoon Kumar via llvm-commits llvm-commits at lists.llvm.org
Wed Jul 8 03:04:02 PDT 2026


================
@@ -362,13 +442,17 @@ def _executeShCmd(cmd, shenv, results, timeoutHelper):
             results.append(result)
             return result.exitCode
 
-        # Resolve any out-of-process builtin command before adding back 'not'
-        # commands.
-        if args[0] in builtin_commands:
+        builtin_fn = pipeline_builtins.get(args[0])
+        # Fall back to spawning the script only where in-process can't cope:
+        # a per-command 'env' (diff also reads locale) or 'not --crash' (a
----------------
prasoon054 wrote:

I checked it and no test anywhere sets the locale for the cat / diff. I'll drop locale as a reason to fall back for `env`.

https://github.com/llvm/llvm-project/pull/208024


More information about the llvm-commits mailing list