Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update README to use --target instead of toolchain overrides #47

Merged
merged 1 commit into from
Oct 12, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 10 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,9 @@ The [Rust] compiler:
# in the `rust-g` directory...
cd rust-g
# Linux
rustup override add stable-i686-unknown-linux-gnu
rustup target add stable-i686-unknown-linux-gnu
# Windows
rustup override add stable-i686-pc-windows-msvc
rustup target add stable-i686-pc-windows-msvc
```

System libraries:
Expand All @@ -62,7 +62,10 @@ use with the [tgstation] codebase. To compile in release mode (recommended for
speed):

```sh
cargo build --release
# Linux
cargo build --release --target=i686-unknown-linux-gnu
# Windows
cargo build --release --target=i686-pc-windows-msvc
```

On Linux, the output will be `target/release/librust_g.so`.
Expand All @@ -72,7 +75,10 @@ On Windows, the output will be `target/release/rust_g.dll`.
For more advanced configuration, a list of modules may be passed:

```sh
cargo build --release --features dmi,file,log,url,http
# Linux
cargo build --release --target=i686-unknown-linux-gnu --features dmi,file,log,url,http
# Windows
cargo build --release --target=i686-pc-windows-msvc --features dmi,file,log,url,http
```

The default features are:
Expand Down