Update template to modern GCC #1
1 changed files with 2 additions and 2 deletions
|
@ -21,7 +21,7 @@ include_directories(Peripheral/inc)
|
||||||
|
|
||||||
add_definitions(-finline-functions-called-once -g)
|
add_definitions(-finline-functions-called-once -g)
|
||||||
|
|
||||||
add_definitions(-Wall -Wextra -march=rv32imac_zicsr_zifencei -mabi=ilp32 -msmall-data-limit=0 -msave-restore -Os -fmessage-length=0 -fsigned-char -ffunction-sections -fdata-sections -fno-common -mcmodel=medany --specs=nano.specs)
|
add_definitions(-Wall -Wextra -march=rv32imac_zicsr_zifencei -mabi=ilp32 -msmall-data-limit=0 -msave-restore -Os -fmessage-length=0 -fsigned-char -ffunction-sections -fdata-sections -fno-common -mcmodel=medany)
|
||||||
|
|
||||||
file(GLOB SOURCES "Debug/*.c" "Core/*.c" "User/*.c" "Peripheral/src/*.c" "Startup/*.S")
|
file(GLOB SOURCES "Debug/*.c" "Core/*.c" "User/*.c" "Peripheral/src/*.c" "Startup/*.S")
|
||||||
|
|
||||||
|
@ -36,4 +36,4 @@ add_custom_command(OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/${CMAKE_PROJECT_NAME}.siz
|
||||||
|
|
||||||
add_executable(${CMAKE_PROJECT_NAME}.elf ${SOURCES})
|
add_executable(${CMAKE_PROJECT_NAME}.elf ${SOURCES})
|
||||||
|
|
||||||
target_link_options(${CMAKE_PROJECT_NAME}.elf PRIVATE -T ${CMAKE_SOURCE_DIR}/Ld/Link.ld -Os -march=rv32imac_zicsr_zifencei -mabi=ilp32 -nostartfiles -Xlinker -gc-sections -static --specs=nano.specs -mcmodel=medany)
|
target_link_options(${CMAKE_PROJECT_NAME}.elf PRIVATE -T ${CMAKE_SOURCE_DIR}/Ld/Link.ld -Os -march=rv32imac_zicsr_zifencei -mabi=ilp32 -nostartfiles -Xlinker -gc-sections -static --specs=nano.specs --specs=nosys.specs -mcmodel=medany)
|
||||||
|
|
Loading…
Reference in a new issue