From c29c1a2935af1a35e1eeb132616f461a5d4bad62 Mon Sep 17 00:00:00 2001 From: cy384 Date: Mon, 24 Aug 2020 23:06:29 -0400 Subject: [PATCH] tweak build settings for 68k to minimize crashes with assembly --- CMakeLists.txt | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index b4f2753..57b4632 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -4,15 +4,16 @@ add_application(ssheven CREATOR "SSH7" ssheven.c ssheven-console.c ssheven.r) set_target_properties(ssheven PROPERTIES COMPILE_OPTIONS -ffunction-sections) -add_compile_options(-O2 -flto) - IF(CMAKE_SYSTEM_NAME MATCHES Retro68) # for 68k -add_compile_options(-march=68020) +#enable this once we figure out the compiler bug issue +#add_compile_options(-mcpu=68020) +#add_compile_options(-O2 -flto) 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) ELSE() # for PPC +add_compile_options(-O2 -flto) set_target_properties(ssheven PROPERTIES LINK_FLAGS "-Wl,-gc-sections") target_link_libraries(ssheven ThreadsLib ssh2 mbedtls mbedx509 mbedcrypto OpenTransportAppPPC OpenTransportLib OpenTptInternetLib) ENDIF()