Commit e66cfef4 authored by Klint Youngmeyer's avatar Klint Youngmeyer
Browse files

Fix cmake compiler test errors

parent 70a942d0
INCLUDE(CMakeForceCompiler)
#Version Information
SET(TC_ARMV5_MAJOR_VERSION 1)
SET(TC_ARMV5_MINOR_VERSION 0)
......@@ -6,12 +8,16 @@ SET(TC_ARMV5_VERSION ${TC_ARMV5_MAJOR_VERSION}.${TC_ARMV5_MINOR_VERSION}.${TC_AR
SET(CMAKE_SYSTEM_NAME Linux)
SET(CMAKE_SYSTEM_VERSION 1)
SET(CMAKE_C_COMPILER /opt/emac/5.0/sysroots/x86_64-emacsdk-linux/usr/bin/arm-emac-linux-gnueabi/arm-emac-linux-gnueabi-gcc)
SET(CMAKE_CXX_COMPILER /opt/emac/5.0/sysroots/x86_64-emacsdk-linux/usr/bin/arm-emac-linux-gnueabi/arm-emac-linux-gnueabi-g++)
SET(CMAKE_FORCE_C_COMPILER /opt/emac/5.0/sysroots/x86_64-emacsdk-linux/usr/bin/arm-emac-linux-gnueabi/arm-emac-linux-gnueabi-gcc GNU)
SET(CMAKE_FORCE_CXX_COMPILER /opt/emac/5.0/sysroots/x86_64-emacsdk-linux/usr/bin/arm-emac-linux-gnueabi/arm-emac-linux-gnueabi-g++ GNU)
SET(CMAKE_FIND_ROOT_PATH /opt/emac/5.0/sysroots/armv5e-emac-linux-gnueabi/)
SET(CMAKE_C_FLAGS " -march=armv5te -marm -mthumb-interwork -pipe -feliminate-unused-debug-types -Wall -MMD")
SET(CMAKE_CXX_FLAGS " -march=armv5te -marm -mthumb-interwork -pipe -feliminate-unused-debug-types -fpermissive -Wall -MMD")
SET(CMAKE_FIND_ROOT_PATH_PROGRAM NEVER)
SET(CMAKE_FIND_ROOT_PATH_LIBRARY ONLY)
SET(CMAKE_FIND_ROOT_PATH_INCLUDE ONLY)
SET(CMAKE_C_FLAGS " -march=armv5te -marm -mthumb-interwork -pipe -feliminate-unused-debug-types -Wall -MMD --sysroot=${CMAKE_FIND_ROOT_PATH}")
SET(CMAKE_CXX_FLAGS " -march=armv5te -marm -mthumb-interwork -pipe -feliminate-unused-debug-types -fpermissive -Wall -MMD --sysroot=${CMAKE_FIND_ROOT_PATH}")
SET(CMAKE_C_FLAGS_DEBUG "-O0 -g ${CMAKE_C_FLAGS}")
SET(CMAKE_C_FLAGS_RELEASE "-O2 -s ${CMAKE_C_FLAGS}")
SET(CMAKE_C_FLAGS_MINSIZEREL "-O3 -s ${CMAKE_C_FLAGS}")
......@@ -24,5 +30,5 @@ SET(CMAKE_C_FLAGS_CUSTOM "-O1 -s ${CMAKE_C_FLAGS}")
SET(CMAKE_CXX_FLAGS_CUSTOM "-O1 -s ${CMAKE_CXX_FLAGS}")
###
set(CMAKE_EXE_LINKER_FLAGS_RELEASE "-s") ## Strip binary
set(CMAKE_EXE_LINKER_FLAGS_RELEASE "-s") ## Strip binary for RELEASE
INCLUDE(CMakeForceCompiler)
#Version Information
SET(TC_I586_MAJOR_VERSION 1)
SET(TC_I586_MINOR_VERSION 0)
......@@ -6,12 +8,16 @@ SET(TC_I586_VERSION ${TC_I586_MAJOR_VERSION}.${TC_I586_MINOR_VERSION}.${TC_I586_
SET(CMAKE_SYSTEM_NAME Linux)
SET(CMAKE_SYSTEM_VERSION 1)
SET(CMAKE_C_COMPILER /opt/emac/5.0/sysroots/x86_64-emacsdk-linux/usr/bin/i586-emac-linux/i586-emac-linux-gcc)
SET(CMAKE_CXX_COMPILER /opt/emac/5.0/sysroots/x86_64-emacsdk-linux/usr/bin/i586-emac-linux/i586-emac-linux-g++)
SET(CMAKE_FORCE_C_COMPILER /opt/emac/5.0/sysroots/x86_64-emacsdk-linux/usr/bin/i586-emac-linux/i586-emac-linux-gcc GNU)
SET(CMAKE_FORCE_CXX_COMPILER /opt/emac/5.0/sysroots/x86_64-emacsdk-linux/usr/bin/i586-emac-linux/i586-emac-linux-g++ GNU)
SET(CMAKE_FIND_ROOT_PATH /opt/emac/5.0/sysroots/i586-emac-linux/)
SET(CMAKE_C_FLAGS " -m32 -march=i586 -pipe -feliminate-unused-debug-types -Wall -MMD")
SET(CMAKE_CXX_FLAGS " -m32 -march=i586 -pipe -feliminate-unused-debug-types -fpermissive -Wall -MMD")
SET(CMAKE_FIND_ROOT_PATH_PROGRAM NEVER)
SET(CMAKE_FIND_ROOT_PATH_LIBRARY ONLY)
SET(CMAKE_FIND_ROOT_PATH_INCLUDE ONLY)
SET(CMAKE_C_FLAGS " -m32 -march=i586 -pipe -feliminate-unused-debug-types -Wall -MMD --sysroot=${CMAKE_FIND_ROOT_PATH}")
SET(CMAKE_CXX_FLAGS " -m32 -march=i586 -pipe -feliminate-unused-debug-types -fpermissive -Wall -MMD --sysroot=${CMAKE_FIND_ROOT_PATH}")
SET(CMAKE_C_FLAGS_DEBUG "-O0 -g ${CMAKE_C_FLAGS}")
SET(CMAKE_C_FLAGS_RELEASE "-O2 -s ${CMAKE_C_FLAGS}")
SET(CMAKE_C_FLAGS_MINSIZEREL "-O3 -s ${CMAKE_C_FLAGS}")
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment