Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
FORMUS3IC_LAS3
/
embb
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
72a47401
authored
Mar 28, 2017
by
Michael Schmid
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
new compiler version and changes to flags
parent
2fdf534c
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
11 additions
and
9 deletions
+11
-9
CMakeCommon/SetCompilerFlags.cmake
+9
-4
TC_Toolchain.cmake
+2
-2
base_c/CMakeLists.txt
+0
-3
partest.tar
+0
-0
No files found.
CMakeCommon/SetCompilerFlags.cmake
View file @
72a47401
...
...
@@ -26,19 +26,24 @@
#
function
(
SetGNUCompilerFlags compiler_libs
)
if
(
CMAKE_COMPILER_IS_GNUCC OR CMAKE_COMPILER_IS_GNUCXX
)
if
(
DEFINED
CMAKE_SYSTEM_PROCESSOR
)
if
(
DEFINED
__TriCore__
)
set
(
compiler_libs PARENT_SCOPE
)
set
(
common_flags
"-fno-common -Os -std=c99"
)
set
(
warning_flags
"-W -Wall -Wextra -Wdiv-by-zero -Warray-bounds -Wcast-align -Wignored-qualifiers -Wformat -Wformat-security"
)
set
(
common_c_flags
"-fno-common -Os -std=c99"
)
set
(
common_cxx_flags
"-fno-common -std=c++0x"
)
set
(
warning_flags
"-W -Wall -Wextra"
)
set
(
target_flags
"-DAPPKIT_TC277TFT -DEMBB_DEBUG -fshort-double -mcpu=tc27xx -mversion-info"
)
if
(
WARNINGS_ARE_ERRORS STREQUAL ON
)
set
(
warning_flags
"
${
warning_flags
}
-Werror"
)
endif
()
if
(
CMAKE_COMPILER_IS_GNUCC
)
set
(
CMAKE_C_FLAGS
"
${
CMAKE_C_FLAGS
}
${
common_flags
}
${
warning_flags
}
${
target_flags
}
"
set
(
CMAKE_C_FLAGS
"
${
CMAKE_C_FLAGS
}
${
common_
c_
flags
}
${
warning_flags
}
${
target_flags
}
"
PARENT_SCOPE
)
endif
()
if
(
CMAKE_COMPILER_IS_GNUCXX
)
set
(
CMAKE_CXX_FLAGS
"
${
CMAKE_CXX_FLAGS
}
${
common_cxx_flags
}
${
warning_flags
}
${
target_flags
}
"
PARENT_SCOPE
)
endif
()
else
()
set
(
compiler_libs pthread rt PARENT_SCOPE
)
# -Wall -> All warnings
...
...
TC_Toolchain.cmake
View file @
72a47401
...
...
@@ -10,8 +10,8 @@ set(__TriCore__ 1)
set
(
EMBB_OS_FREERTOS 1
)
# specify the cross compiler
SET
(
CMAKE_C_COMPILER C:/HighTec/toolchains/tricore/v4.
6.6
.0-infineon-1.1/bin/tricore-gcc.exe
)
SET
(
CMAKE_CXX_COMPILER C:/HighTec/toolchains/tricore/v4.
6.6.0-infineon-1.1/bin/tricore-g
++.exe
)
SET
(
CMAKE_C_COMPILER C:/HighTec/toolchains/tricore/v4.
9.1
.0-infineon-1.1/bin/tricore-gcc.exe
)
SET
(
CMAKE_CXX_COMPILER C:/HighTec/toolchains/tricore/v4.
9.1.0-infineon-1.1/bin/tricore-c
++.exe
)
# target environment
SET
(
CMAKE_FIND_ROOT_PATH C:/HighTec/toolchains/tricore/v4.6.6.0-infineon-1.1
)
...
...
base_c/CMakeLists.txt
View file @
72a47401
...
...
@@ -74,9 +74,6 @@ endif()
if
(
DEFINED EMBB_OS_FREERTOS
)
#set(CMAKE_CXX_STANDARD_LIBRARIES ${FREE_RTOS_LIB_PATH}/iRom/libFreeRTOS_Lib.a)
#set(CMAKE_C_STANDARD_LIBRARIES ${FREE_RTOS_LIB_PATH}/iRom/libFreeRTOS_Lib.a)
#set(CMAKE_INSTALL_RPATH ${FREE_RTOS_LIB_PATH})
file
(
GLOB_RECURSE FREE_RTOS_HEADERS
"
${
FREE_RTOS_LIB_PATH
}
/*.h"
)
endif
()
...
...
partest.tar
View file @
72a47401
No preview for this file type
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment