add cpu compiler option

This commit is contained in:
cy384 2020-12-27 21:16:07 -05:00
parent 6db41aa8e8
commit 77e05f4c6d
1 changed files with 1 additions and 1 deletions

View File

@ -5,7 +5,7 @@ add_application(ssheven CREATOR "SSH7" ssheven.c ssheven-console.c ssheven.r)
IF(CMAKE_SYSTEM_NAME MATCHES Retro68)
# for 68k
# add "-mcpu=68020" once we figure out retro68 bug
set_target_properties(ssheven PROPERTIES COMPILE_FLAGS "-ffunction-sections -O3 -Wall -Wextra -Wno-unused-parameter")
set_target_properties(ssheven PROPERTIES COMPILE_FLAGS "-ffunction-sections -mcpu=68020 -O3 -Wall -Wextra -Wno-unused-parameter")
set_target_properties(ssheven PROPERTIES LINK_FLAGS "-Wl,-gc-sections -Wl,--mac-segments -Wl,${CMAKE_CURRENT_SOURCE_DIR}/ssheven.segmap")
target_link_libraries(ssheven ssh2 mbedtls mbedx509 mbedcrypto OpenTransportApp OpenTransport OpenTptInet vterm retrocrt)
ELSE()