riscv64-unknown-elf.cmake 354 B

12345678910111213141516
  1. if(${USE_PICOLIBC})
  2. add_compile_options(
  3. --specs=picolibc.specs
  4. )
  5. add_compile_definitions(USE_PICOLIBC)
  6. add_link_options(
  7. -Wl,--defsym=__heap_start=__heap_base__,--defsym=__heap_end=__heap_end__
  8. )
  9. endif()
  10. add_compile_options(
  11. -march=${MCU_ARCH}
  12. -mabi=${MCU_ABI}
  13. -mcmodel=${MCU_CMODEL}
  14. -mstrict-align
  15. )