mirror of
https://github.com/ruffle-rs/ruffle-android.git
synced 2024-11-23 05:39:38 +00:00
Add back line about TARGE_CC, TARGET_CXX and TARGET_AR
This commit is contained in:
parent
e94f0da6e5
commit
ecc14d9460
@ -51,6 +51,8 @@ Feel free to install other emulators to help test different form factors or olde
|
|||||||
### Use android target
|
### Use android target
|
||||||
Set the target of your favourite tools (such as Rust Rover or Rust Analyzer) to `aarch64-linux-android` (or similar)
|
Set the target of your favourite tools (such as Rust Rover or Rust Analyzer) to `aarch64-linux-android` (or similar)
|
||||||
to stop any errors from it trying to compile Android code for an unsupported platform.
|
to stop any errors from it trying to compile Android code for an unsupported platform.
|
||||||
|
If that isn't enough, you may also need to set the `TARGET_CC`, `TARGET_CXX`, and `TARGET_AR` environment variables to the
|
||||||
|
full paths of the (sometimes API level-specific) `clang`, `clang++`, and `llvm-ar` binaries from the NDK, respectively.
|
||||||
|
|
||||||
### Troubleshooting
|
### Troubleshooting
|
||||||
|
|
||||||
@ -63,7 +65,9 @@ These are enforced by Github Actions, but you are encouraged to run these locall
|
|||||||
|
|
||||||
### Rust
|
### Rust
|
||||||
Ruffle is built using the latest stable version of the Rust compiler. Nightly and unstable features should be avoided.
|
Ruffle is built using the latest stable version of the Rust compiler. Nightly and unstable features should be avoided.
|
||||||
The Rust code in Ruffle strives to be idiomatic. The Rust compiler should emit no warnings when building the project. Additionally, all code should be formatted using [`rustfmt`](https://github.com/rust-lang/rustfmt) and linted using [`clippy`](https://github.com/rust-lang/rust-clippy). You can install these tools using `rustup`:
|
The Rust code in Ruffle strives to be idiomatic. The Rust compiler should emit no warnings when building the project.
|
||||||
|
Additionally, all code should be formatted using [`rustfmt`](https://github.com/rust-lang/rustfmt) and linted using [`clippy`](https://github.com/rust-lang/rust-clippy).
|
||||||
|
You can install these tools using `rustup`:
|
||||||
|
|
||||||
```sh
|
```sh
|
||||||
rustup component add rustfmt
|
rustup component add rustfmt
|
||||||
@ -101,4 +105,4 @@ And to automatically lint the code, use:
|
|||||||
|
|
||||||
```sh
|
```sh
|
||||||
./gradlew lint
|
./gradlew lint
|
||||||
```
|
```
|
||||||
|
Loading…
Reference in New Issue
Block a user