[clang] [lld] [llvm] [mlir] [LLVM][Windows] Elide `PrettyStackTrace` output for usage errors (PR #140956)

via cfe-commits cfe-commits at lists.llvm.org
Thu May 22 09:08:41 PDT 2025


================
@@ -1,15 +1,26 @@
-; REQUIRES: x86, non-root-user
-;; Not supported on windows since we use permissions to deny the creation
-; UNSUPPORTED: system-windows
+;; The output is OS-specific, so this test is limited to Windows.
----------------
bd1976bris wrote:

I have had to change the test strategy for this to use the invalid pass pipeline errors, as they occur in a single-threaded context*. The test for that in LLD works on both platforms.

* #140955 was reverted. Digging into why the test failed, I suspect that reportFatalUsageError can cause a crash if threads call reportFatalUsageError simultaneously (the ThinLTO cache dir is used from a multi-threaded context). I have observed this on Windows. It may also apply on Linux.

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


More information about the cfe-commits mailing list