This script automates the setup of a development environment for the "GNU/Linux System Software" course at St. Petersburg Polytechnic University, instructed by Alexey Levchenko. It primarily focuses on setting up LLVM and related tools.
-
Clone this repository to your local machine:
git clone https://github.com/seigtm/llvm-setup.git
-
Change into the cloned directory:
cd llvm-setup
-
Inside the script, you may need to configure variables to match your specific requirements. Pay attention to variables like
llvm_id
,jobs_compiler
,jobs_linker
, and directories likehome_dir
,dev_dir
,llvm_build
,llvm_ccache
,llvm_install
,llvm_module
,llvm_src
, andllvm_src_main
. Customize these variables as needed. -
Make the script executable:
chmod +x llvm.sh
-
Run the script:
sudo ./llvm.sh
- Updates the system and installs necessary packages.
- Sets up directories for LLVM and related tools.
- Clones the LLVM repository and creates a worktree for a specific branch.
- Configures and builds LLVM with specified options.
- Updates the user's environment settings.
- Creates a module file for LLVM.