Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
adonis0147 authored Oct 29, 2024
1 parent 710c738 commit 3bd93c2
Showing 1 changed file with 15 additions and 7 deletions.
22 changes: 15 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 <some path>
```
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="<some path>/compiler/bin:${PATH}"
```

4. Now `gcc --help` should work!

## Build GCC Toolchain Yourself (Advanced)
Expand All @@ -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 <some path>
export PATH="<some path>/compiler/bin:${PATH}"
```

## Use Optional Toolset
### Install the toolset
Expand Down

0 comments on commit 3bd93c2

Please sign in to comment.