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

Prefer using LLVM_PREFIX if available to find clang and llvm-link programs #298

Merged
merged 1 commit into from Sep 20, 2018

Conversation

dureuill
Copy link
Contributor

Before this PR, when specifying a LLVM_PREFIX, it is not used to determine the CLANG_PATH and the LLVMLINK_PATH, if these binaries are available system-wide.

After this PR, if LLVM_PREFIX has been specified, only this variable is used to determine CLANG_PATH and LLVMLINK_PATH. If it hasn't been specified, the lookup code is unchanged.

Depending on the precise semantics attached to LLVM_PREFIX, this may or may be the wanted behavior. Alternatively, we could first check only looking at the LLVM_PREFIX path, and then the other paths if not found.
The method I chose has the property that the user cannot accidentally have a CLANG_PATH or LLVMLINK_PATH not matching their LLVM_PREFIX.
I chose this method because I believe that when the LLVM_PREFIX is specified, it precisely conveys the intent to use it, and so it should completely replace the system paths.

I can change this PR if this is not the wanted behavior.

@dureuill
Copy link
Contributor Author

Hello,

Any news on this PR? Is there maybe a next step needed?

Thank you for answering!

@pgoodman pgoodman merged commit c72b884 into lifting-bits:master Sep 20, 2018
@dureuill
Copy link
Contributor Author

Wow that was a quick response! 👍 Thank you

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.

None yet

3 participants