Skip to content

Commit af79b03

Browse files
committed
Fix locally
1 parent 3f9eaa1 commit af79b03

3 files changed

Lines changed: 5 additions & 1 deletion

File tree

examples/riscv/riscv64-linux-gnu-toolchain.cmake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ set(CMAKE_STRIP
3939
)
4040

4141
# Sysroot installed by the apt package gcc-riscv64-linux-gnu.
42-
set(CMAKE_SYSROOT "/usr/${_RISCV_TRIPLE}")
42+
set(CMAKE_SYSROOT "")
4343
set(CMAKE_FIND_ROOT_PATH "${CMAKE_SYSROOT}")
4444
set(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER)
4545
set(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY)

examples/riscv/setup.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,11 +22,14 @@ fi
2222

2323
${SUDO} apt-get update
2424
${SUDO} apt-get install -y --no-install-recommends \
25+
build-essential \
2526
gcc-riscv64-linux-gnu \
2627
g++-riscv64-linux-gnu \
2728
binutils-riscv64-linux-gnu \
2829
libc6-riscv64-cross \
2930
libc6-dev-riscv64-cross \
31+
cmake \
32+
file \
3033
qemu-user-static
3134

3235
riscv64-linux-gnu-gcc --version | head -n1

tools/cmake/preset/riscv64_linux.cmake

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,3 +8,4 @@ set_overridable_option(EXECUTORCH_BUILD_EXTENSION_EVALUE_UTIL ON)
88
set_overridable_option(EXECUTORCH_BUILD_EXTENSION_RUNNER_UTIL ON)
99
set_overridable_option(EXECUTORCH_BUILD_DEVTOOLS ON)
1010
set_overridable_option(EXECUTORCH_ENABLE_BUNDLE_IO ON)
11+
set_overridable_option(EXECUTORCH_ENABLE_LOGGING ON)

0 commit comments

Comments
 (0)