diff --git a/README.md b/README.md index 74daf3c..89ce627 100644 --- a/README.md +++ b/README.md @@ -10,17 +10,20 @@ It provides the following stuffs: --- -## Use Prebuilt Toolchain +## Use Prebuilt GCC Toolchain -1. Go to [the release page](https://github.com/adonis0147/devel-env/releases) and fetch the `install_toolchain_x86_64.sh` (if you're on an x64 system) or `install_toolchain_aarch64.sh` (if you're on an ARM64 system). -2. Extract the toolchain, don't run this as root but simply as your regular user: +1. Go to [the release page](https://github.com/adonis0147/devel-env/releases) and fetch the `install_toolchain_x86_64.sh` (if you're on the x86_64 system) or `install_toolchain_aarch64.sh` (if you're on the aarch64 system). + +2. Extract the toolchain. ``` - ./install_toolchain_x86_64.sh my-gcc-toolchain + bash install_toolchain_x86_64.sh ``` -3. Optionally, ajust the `$PATH` variable to easily access all the tools: + +3. Optionally, adjust the `$PATH` variable to easily access all the tools. ``` - export PATH="`pwd`/my-gcc-toolchain/compiler/bin:${PATH}" + export PATH="/compiler/bin:${PATH}" ``` + 4. Now `gcc --help` should work! ## Build GCC Toolchain Yourself (Advanced) @@ -38,7 +41,12 @@ It provides the following stuffs: docker run --platform=linux/x86-64 --rm --mount type=bind,source="$(pwd)/output",target=/output toolchain ``` -3. You can now use the `output/install_toolchain.sh` script [like above](#use-prebuilt-toolchain)! +3. Usage + ```shell + # Copy the output/install_toolchain.sh to the target server and run the following commands. + bash install_toolchain.sh + export PATH="/compiler/bin:${PATH}" + ``` ## Use Optional Toolset ### Install the toolset