Added toolchain file.

This commit is contained in:
imi415 2022-06-21 09:37:39 +08:00
parent 04c7cb01c1
commit 2826b89248
Signed by: imi415
GPG Key ID: 885EC2B5A8A6F8A7
1 changed files with 10 additions and 0 deletions

10
sh-unknown-elf.cmake Normal file
View File

@ -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()