-
Notifications
You must be signed in to change notification settings - Fork 54
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use the
JUVIX_LLVM_DIST_PATH
environment variable to search for the …
…clang executable (#2152) If set, `JUVIX_LLVM_DIST_PATH` should point to the root of a LLVM installation, i.e clang should be present in`$JUVIX_LLVM_DIST_PATH`/bin/clang. If `JUVIX_LLVM_DIST_PATH` is not set, or `clang` is not available there then the system PATH is used instead, (this is the current behaviour). The `juvix doctor` clang checks use the same logic as `juvix compile` to find and check the `clang` executable. To help with debugging the clang location, this PR also adds `juvix doctor --verbose` which prints the location of the `clang` executable and whether it was found using the system PATH or the JUVIX_LLVM_DIST_PATH environment variable: ``` juvix doctor --verbose > Checking for clang... | Found clang at "/Users/paul/.local/share/juvix/llvmbox/bin/clang" using JUVIX_LLVM_DIST_PATH environment variable ``` or ``` juvix doctor --verbose > Checking for clang... | Found clang at "/Users/paul/.local/bin/clang" using system PATH ``` * Closes #2133
- Loading branch information
1 parent
757b4ed
commit 40e6648
Showing
5 changed files
with
153 additions
and
26 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters