Skip to content

Commit 230e4f9

Browse files
moluoproCommit Queue
authored andcommitted
Revised Building.md and improved Building-Dart-SDK-for-ARM-or-RISC-V.md
Closes #60225 GitOrigin-RevId: bdd56f7 Change-Id: Ib28c88264519f45f821ac3571386520ba5b24000 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/412900 Commit-Queue: Slava Egorov <[email protected]> Reviewed-by: Slava Egorov <[email protected]>
1 parent 5316613 commit 230e4f9

File tree

2 files changed

+11
-5
lines changed

2 files changed

+11
-5
lines changed

docs/Building-Dart-SDK-for-ARM-or-RISC-V.md

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -66,10 +66,10 @@ $ ./tools/linux_dist_support/create_debian_packages.py -a {ia32, x64, arm, arm64
6666

6767
# Testing
6868

69-
In addition to cross-compiling the Dart SDK, test items can also be cross-compiled. Even without the corresponding hardware, you can quickly verify if the source code modifications you made are correct. Below is a simple method for development on the riscv64 platform for your reference.
69+
In addition to cross-compiling the Dart SDK, test items can also be cross-compiled. Even without the corresponding hardware, you can quickly verify if the source code modifications you made are correct. Below is a simple method for development on the RISCV64 platform for your reference.
7070

71-
Cross-compile the test items on x86_64 Linux to riscv64 and perform correctness check:
72-
1. Follow the steps above to cross-compile the riscv64 sdk.
71+
Cross-compile the test items on X64 Linux to RISCV64 and perform correctness check:
72+
1. Follow the steps above to cross-compile the RISCV64 sdk.
7373
2. Cross-compile the test items by running: `./tools/build.py --mode release --arch riscv64 most run_ffi_unit_tests`.
7474
3. Install the necessary QEMU dependencies: `sudo apt install qemu-user qemu-user-static qemu-system`.
7575
4. Run the test items, e.g., `tests/lib`:
@@ -85,4 +85,10 @@ export QEMU_LD_PREFIX=/usr/riscv64-linux-gnu
8585
--time \
8686
--tasks 8 \
8787
lib
88-
```
88+
```
89+
90+
If you have configured QEMU for RISCV64, you can merge steps 3 and 4 into a single command (omitting some print parameters):
91+
92+
```bash
93+
./tools/test.py -r vm -m release -a riscv64 --use-qemu lib
94+
```

docs/Building.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -219,7 +219,7 @@ Dart2JS example:
219219
language
220220
```
221221

222-
In the above examples: `--progress` is used to style the progress bar in terminal; `--time` is used to print time information; `--tasks` is used to set the number of parallel tasks; you can use `. /tools/test.py --help` for more details.
222+
In the above examples: `--progress` is used to style the progress bar in terminal; `--time` is used to print time information; `--tasks` is used to set the number of parallel tasks; you can use `./tools/test.py --help` for more details.
223223

224224
## Troubleshooting and tips for browser tests
225225
To debug a browser test failure, you must start a local http server to serve the test. This is made easy with a helper script in dart/tools/testing. The error report from test.py gives the command line to start the server in a message that reads:

0 commit comments

Comments
 (0)