From 2826b892489d9fae98d2338f2cbea47cea1e69a9 Mon Sep 17 00:00:00 2001 From: imi415 Date: Tue, 21 Jun 2022 09:37:39 +0800 Subject: [PATCH] Added toolchain file. --- sh-unknown-elf.cmake | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 sh-unknown-elf.cmake diff --git a/sh-unknown-elf.cmake b/sh-unknown-elf.cmake new file mode 100644 index 0000000..9593af3 --- /dev/null +++ b/sh-unknown-elf.cmake @@ -0,0 +1,10 @@ +set(CMAKE_C_COMPILER sh-unknown-elf-gcc) +set(CMAKE_CXX_COMPILER sh-unknown-elf-g++) + +# Make CMake happy about those compilers +set(CMAKE_TRY_COMPILE_TARGET_TYPE "STATIC_LIBRARY") + +# Poor old Windows... +if(WIN32) + set(CMAKE_SYSTEM_NAME "Generic") +endif() \ No newline at end of file