[clang] [lld] [llvm] [DTLTO][Clang][LLD] Fix DTLTO for multi-call LLVM driver toolchain (PR #162456)

via cfe-commits cfe-commits at lists.llvm.org
Wed Oct 8 04:34:01 PDT 2025


github-actions[bot] wrote:

<!--LLVM CODE FORMAT COMMENT: {darker}-->


:warning: Python code formatter, darker found issues in your code. :warning:

<details>
<summary>
You can test this locally with the following command:
</summary>

``````````bash
darker --check --diff -r origin/main...HEAD clang/test/Driver/DTLTO/dtlto-helper.py
``````````

:warning:
The reproduction instructions above might return results for more than one PR
in a stack if you are using a stacked PR workflow. You can limit the results by
changing `origin/main` to the base branch/commit you want to compare against.
:warning:

</details>

<details>
<summary>
View the diff from darker here.
</summary>

``````````diff
--- dtlto-helper.py	2025-10-08 10:15:53.000000 +0000
+++ dtlto-helper.py	2025-10-08 11:33:30.416702 +0000
@@ -4,8 +4,8 @@
 # Arg 1: "clang" path.
 p = Path(sys.argv[1])
 print(f"clang-name:{p.resolve().name}")
 # Arg 2: Non-zero for LLVM driver.
 if sys.argv[2] != "0":
-    print(f"prepend-arg:\"--thinlto-remote-compiler-prepend-arg={p.name}\"")
+    print(f'prepend-arg:"--thinlto-remote-compiler-prepend-arg={p.name}"')
 else:
     print("prepend-arg: ")

``````````

</details>


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


More information about the cfe-commits mailing list