From 5d4f83c53a75214a62f351c3de0700a1a72bb061 Mon Sep 17 00:00:00 2001 From: Luke Benstead Date: Sun, 23 May 2021 13:24:29 +0100 Subject: [PATCH] Tweak toolchain fix --- toolchains/Dreamcast.cmake | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/toolchains/Dreamcast.cmake b/toolchains/Dreamcast.cmake index 00c4a9c..deb5a07 100644 --- a/toolchains/Dreamcast.cmake +++ b/toolchains/Dreamcast.cmake @@ -6,8 +6,13 @@ SET(CMAKE_SYSTEM_VERSION 1) set(CMAKE_CROSSCOMPILING TRUE) +IF(WIN32) set(CMAKE_C_COMPILER $ENV{KOS_CC_BASE}/bin/sh-elf-gcc${CMAKE_EXECUTABLE_SUFFIX}) set(CMAKE_CXX_COMPILER $ENV{KOS_CC_BASE}/bin/sh-elf-g++${CMAKE_EXECUTABLE_SUFFIX}) +ELSE() +set(CMAKE_C_COMPILER $ENV{KOS_CC_BASE}/bin/sh-elf-gcc) +set(CMAKE_CXX_COMPILER $ENV{KOS_CC_BASE}/bin/sh-elf-g++) +ENDIF() add_compile_options(-ml -m4-single-only -ffunction-sections -fdata-sections)