mirror of
https://github.com/anoma/juvix.git
synced 2024-12-13 11:16:48 +03:00
40e6648ae1
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 https://github.com/anoma/juvix/issues/2133 |
||
---|---|---|
.. | ||
Options.hs |