yf13 commented on PR #11579:
URL: https://github.com/apache/nuttx/pull/11579#issuecomment-1903984040

   @anchao, I did a few changes but none can pass local check with Stock and 
Xpack gcc toolchains here.
   
   1)  Changes on `Toolchain.cmake`: a) remove the GCC_VERSION guard, b) 
replaceing the PLATFORM_FLAGS to LLVM_CPUTYPE in that file.
   2) Channegs on `platform.cmake`: remove the GCC_VERSION guard
   
   With these two changes, the stock toolchain complains about the 
CMAKE_C_FLAGS added in `platform.cmake`. 
   
   When I skipped 2) and only keep change 1),  both stock toolchain and XPack 
works here for `rv-virt/nsh`. But stock toolchain failed with `rv-virt/nsh64` 
with `riscv64-unknown-elf-gcc: error: unrecognized command-line option 
'-mcpu=sifive-u54'` 
   
   So it seems things are not better than my original change.
   
   
   
   
   
   
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscr...@nuttx.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to