================
@@ -45,8 +45,11 @@ void lld::unlinkAsync(StringRef path) {
   if (!sys::fs::exists(path) || !sys::fs::is_regular_file(path))
     return;
 
+// If threads are disabled, remove the file synchronously.
----------------
jyknight wrote:

There's already a check below,
```
  if (parallel::strategy.ThreadsRequested == 1)
    return;
```

Probably that should be a constant in no-threads builds, then maybe this change 
isn't needed?

https://github.com/llvm/llvm-project/pull/92677
_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to