You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Edit v8/build/config/riscv.gni, assign values to riscv_gcc_toolchain_path and riscv_sysroot, like this
cd to your v8 directory, run gn gen out/riscv32.native.debug --args='is_component_build=false is_debug=true target_cpu="riscv32" v8_target_cpu="riscv32" use_goma=false goma_dir="None" treat_warnings_as_errors=false is_clang=false', then ninja -C out/riscv32.native.debug -j12.
Enjoy hacking!
The text was updated successfully, but these errors were encountered:
Prerequisite: you are on a up-to-date x86_64 linux environment.
/opt/riscv/
. Your/opt/riscv
should look like this (ignore theriscv64-unknow-linux-gnu
entry, it's present because I also installed the gnu gcc riscv64 toolchain):cd
to your v8 directory, thencd build
. Thebuild
directory contains toolchain configurations for building v8. Download this patch from @luyahan: https://gist.github.com/VitalyAnkh/6e064ab3dcdf1be1032111bc8fa61acb. Thengit apply <path-to-the-patch>
.v8/build/config/riscv.gni
, assign values toriscv_gcc_toolchain_path
andriscv_sysroot
, like thiscd
to your v8 directory, rungn gen out/riscv32.native.debug --args='is_component_build=false is_debug=true target_cpu="riscv32" v8_target_cpu="riscv32" use_goma=false goma_dir="None" treat_warnings_as_errors=false is_clang=false'
, thenninja -C out/riscv32.native.debug -j12
.Enjoy hacking!
The text was updated successfully, but these errors were encountered: