Skip to content
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 our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix path specification passed to AC_CHECK_PROG when checking for FileCheck #101

Merged
merged 1 commit into from
May 12, 2024

Conversation

andidr
Copy link
Contributor

@andidr andidr commented Mar 5, 2024

The set of locations in which AC_CHECK_PROG looks for a program is passed to the macro as a colon-separated path specification.

However, in the invocation of AC_CHECK_PROG for FileCheck, this specification is preceded by an extra path = , which causes the first location to be interpreted as path = $CLANG_PREFIX/bin rather than $CLANG_PREFIX/bin. This causes the check to fail, even if the file $CLANG_PREFIX/bin/FileCheck exists and is executable.

Removing the prefix makes the check work as expected.

…Check

The set of locations in which `AC_CHECK_PROG` looks for a program is
passed to the macro as a colon-separated path specification.

However, in the invocation of `AC_CHECK_PROG` for `FileCheck`, this
specification is preceded by an extra `path = `, which causes the
first location to be interpreted as `path = $CLANG_PREFIX/bin` rather
than `$CLANG_PREFIX/bin`. This causes the check to fail, even if the
file `$CLANG_PREFIX/bin/FileCheck` exists and is executable.

Removing the prefix makes the check work as expected.

Signed-off-by: Andi Drebes <[email protected]>
@andidr
Copy link
Contributor Author

andidr commented Mar 28, 2024

Just saw that somebody mentioned the same in #96.

@bondhugula bondhugula self-requested a review May 12, 2024 15:46
Copy link
Owner

@bondhugula bondhugula left a comment

Choose a reason for hiding this comment

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

Thank you for fixing this. LGTM.

@bondhugula bondhugula merged commit 655ca80 into bondhugula:master May 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants