Skip to content

Commit

Permalink
Remove mabi from clang compilation flow (#482)
Browse files Browse the repository at this point in the history
This limits the compilation capabilities when using the clang compiler. More information on this flag can be found here: https://gcc.gnu.org/onlinedocs/gcc/RISC-V-Options.html
  • Loading branch information
davidmallasen authored Apr 16, 2024
1 parent d2e3aaa commit e49d373
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion sw/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -328,7 +328,6 @@ set(CMAKE_C_FLAGS ${COMPILER_LINKER_FLAGS})

if (${COMPILER} MATCHES "clang")
set( CMAKE_C_FLAGS "${CMAKE_C_FLAGS} --target=riscv32 \
-mabi=ilp32 \
--gcc-toolchain=${RISCV} \
--sysroot=${RISCV}/${COMPILER_PREFIX}elf \
-static \
Expand Down

0 comments on commit e49d373

Please sign in to comment.