aboutsummaryrefslogtreecommitdiff
path: root/docs/getting_started.md
diff options
context:
space:
mode:
Diffstat (limited to 'docs/getting_started.md')
-rw-r--r--docs/getting_started.md12
1 files changed, 12 insertions, 0 deletions
diff --git a/docs/getting_started.md b/docs/getting_started.md
index d04e2d48..f2f71b8b 100644
--- a/docs/getting_started.md
+++ b/docs/getting_started.md
@@ -238,6 +238,18 @@ After running script, clang & qemu are built in `build-toolchain-qemu/riscv-clan
-DUSE_RVV=ON .
cmake --build out/Release/
+#### Customized Compiler Flags
+
+Customized compiler flags are supported by `-DRISCV_COMPILER_FLAGS="xxx"`.
+If `-DRISCV_COMPILER_FLAGS="xxx"` is manually assigned, other compile flags(e.g disable -march=xxx) will not be appended.
+
+Example:
+
+ cmake -B out/Release/ -DUNIT_TEST=ON \
+ -DCMAKE_BUILD_TYPE=Release \
+ -DCMAKE_TOOLCHAIN_FILE="./riscv_script/riscv-clang.cmake" \
+ -DRISCV_COMPILER_FLAGS="-mcpu=sifive-x280" \
+ .
### Run on QEMU