Crates.io | llvmenv |
lib.rs | llvmenv |
version | 0.3.2 |
source | src |
created_at | 2018-05-11 11:56:01.892212 |
updated_at | 2021-10-09 01:55:17.588661 |
description | Manage LLVM/Clang builds |
homepage | |
repository | https://github.com/llvmenv/llvmenv |
max_upload_size | |
id | 64845 |
size | 103,858 |
:sos: This project is only somewhat active due to the low number of active maintainers. If you wish to participate, see #72.
Manage multiple LLVM/Clang build
cargo install llvmenv
To install a specific version of LLVM after following the installation steps above, run these shell commands ("10.0.0" can be replaced with any other version found with llvmenv entries
):
llvmenv init
llvmenv entries
llvmenv build-entry 10.0.0
You can swtich LLVM/Clang builds automatically using zsh precmd-hook. Please add a line into your .zshrc
:
source <(llvmenv zsh)
If $LLVMENV_RUST_BINDING
environmental value is non-zero, llvmenv exports LLVM_SYS_60_PREFIX=$(llvmenv prefix)
in addition to $PATH
.
export LLVMENV_RUST_BINDING=1
source <(llvmenv zsh)
This is useful for llvm-sys.rs users. Be sure that this env value will not be unset by llvmenv, only overwrite.
llvmenv build-entry
, and placed at $XDG_DATA_HOME/llvmenv
(usually $HOME/.local/share/llvmenv
).llvmenv prefix
returns the path of the current build (e.g. $XDG_DATA_HOME/llvmenv/llvm-dev
, or /usr
for system build).llvmenv global [name]
sets default build, and llvmenv local [name]
sets directory-local build by creating .llvmenv
text file..llvmenv
sets the current prefix by llvmenv prefix -v
.