Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

[DTLTO][TEST] Fix Clang driver test failing on some build bots#148908

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged

Conversation

bd1976bris
Copy link
Collaborator

@bd1976brisbd1976bris commentedJul 15, 2025
edited
Loading

Not all builds name the compiler executableclang. For example, the Fuchsia build bots usellvm as their single toolchain executable name, as they combine everything together in a busybox-style binary.

Update the Clang driver test to simply check that a non-empty path is provided for the--thinlto-remote-compiler argument, rather than hardcoding the executable name. The cross-project test will verify that the path is valid later.

Shouldfix#147265.

Not all builds name the compiler executable `clang`. For example,the Fuchsia build bots use `llvm` as the executable name, as theycombine everything together in a busybot-style binary.Update the Clang driver test to simply check that a non-empty pathis provided for the `--thinlto-remote-compiler` argument, ratherthan hardcoding the executable name. The cross-project test willverify that the path is valid later.Shouldfixllvm#147265.
@llvmbotllvmbot added clangClang issues not falling into any other category clang:driver'clang' and 'clang++' user-facing binaries. Not 'clang-cl' labelsJul 15, 2025
@bd1976brisbd1976bris requested a review fromnga888July 15, 2025 17:46
@llvmbot
Copy link
Member

llvmbot commentedJul 15, 2025
edited
Loading

@llvm/pr-subscribers-clang-driver

@llvm/pr-subscribers-clang

Author: bd1976bris (bd1976bris)

Changes

Not all builds name the compiler executableclang. For example, the Fuchsia build bots usellvm as their single toolchain executable name, as they combine everything together in a busybot-style binary.

Update the Clang driver test to simply check that a non-empty path is provided for the--thinlto-remote-compiler argument, rather than hardcoding the executable name. The cross-project test will verify that the path is valid later.

Should fix #147265.


Full diff:https://github.com/llvm/llvm-project/pull/148908.diff

1 Files Affected:

  • (modified) clang/test/Driver/DTLTO/dtlto.c (+1-1)
diff --git a/clang/test/Driver/DTLTO/dtlto.c b/clang/test/Driver/DTLTO/dtlto.cindex d72e487e706b2..96795d9a4e6a4 100644--- a/clang/test/Driver/DTLTO/dtlto.c+++ b/clang/test/Driver/DTLTO/dtlto.c@@ -10,7 +10,7 @@  // FORWARD: ld.lld // FORWARD-SAME: "--thinlto-distributor=d.exe"-// FORWARD-SAME: "--thinlto-remote-compiler={{.*}}clang{{[^\"]*}}"+// FORWARD-SAME: "--thinlto-remote-compiler={{[^"]+}}" // FORWARD-SAME: "--thinlto-distributor-arg=a1" // FORWARD-SAME: "--thinlto-distributor-arg=a2" // FORWARD-SAME: "--thinlto-distributor-arg=a3"

@bd1976brisbd1976bris requested a review fromilovepiJuly 15, 2025 17:47
Copy link
Collaborator

@nga888nga888 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

LGTM.

@bd1976brisbd1976bris merged commitedfec9c intollvm:mainJul 15, 2025
11 of 12 checks passed
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers

@nga888nga888nga888 approved these changes

@ilovepiilovepiAwaiting requested review from ilovepi

Assignees
No one assigned
Labels
clang:driver'clang' and 'clang++' user-facing binaries. Not 'clang-cl'clangClang issues not falling into any other category
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

3 participants
@bd1976bris@llvmbot@nga888

[8]ページ先頭

©2009-2025 Movatter.jp