Merge pull request 'Added SDI_PRINTF CMake option' (#2) from logan/CH32V00x:master into master

Reviewed-on: #2
This commit is contained in:
Thomas Muller 2024-03-21 22:30:44 -04:00
commit 9d8100513d

View file

@ -21,6 +21,10 @@ include_directories(Peripheral/inc)
add_definitions(-Wall -Wextra -march=rv32ec_zicsr -mabi=ilp32e -msmall-data-limit=0 -msave-restore -Os -fmessage-length=0 -fsigned-char -ffunction-sections -fdata-sections -fno-common)
IF(SDI_PRINTF)
add_definitions(-DSDI_PRINT=1)
ENDIF(SDI_PRINTF)
file(GLOB SOURCES "Debug/*.c" "Core/*.c" "User/*.c" "Peripheral/src/*.c" "Startup/*.S")
add_custom_command(OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/${CMAKE_PROJECT_NAME}.hex