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
94bfd401
authored
Oct 20, 2015
by
bernhard-gatzhammer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Reproduced bug and played around. Not working yet.
EMBB-516
parent
d36f1bdb
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
34 additions
and
15 deletions
+34
-15
CMakeLists.txt
+3
-0
base_c/CMakeLists.txt
+31
-15
No files found.
CMakeLists.txt
View file @
94bfd401
...
@@ -111,6 +111,9 @@ include(CMakeCommon/SetCompilerFlags.cmake)
...
@@ -111,6 +111,9 @@ include(CMakeCommon/SetCompilerFlags.cmake)
SetGNUCompilerFlags
(
compiler_libs compiler_flags
)
SetGNUCompilerFlags
(
compiler_libs compiler_flags
)
SetVisualStudioCompilerFlags
(
compiler_libs compiler_flags
)
SetVisualStudioCompilerFlags
(
compiler_libs compiler_flags
)
set
(
CMAKE_C_FLAGS
"
${
CMAKE_C_FLAGS
}
-fsanitize=thread -fPIC -pie"
)
set
(
CMAKE_CXX_FLAGS
"
${
CMAKE_CXX_FLAGS
}
-fsanitize=thread -fPIC -pie"
)
## Exception handling in C++
## Exception handling in C++
#
#
if
(
USE_EXCEPTIONS STREQUAL ON
)
if
(
USE_EXCEPTIONS STREQUAL ON
)
...
...
base_c/CMakeLists.txt
View file @
94bfd401
...
@@ -23,21 +23,21 @@ FOREACH(src_tmp ${EMBB_BASE_SOURCES})
...
@@ -23,21 +23,21 @@ FOREACH(src_tmp ${EMBB_BASE_SOURCES})
ENDFOREACH
(
src_tmp
)
ENDFOREACH
(
src_tmp
)
ENDIF
()
ENDIF
()
include
(
CheckTypeSize
)
#
include(CheckTypeSize)
check_type_size
(
char EMBB_CHAR_TYPE_SIZE
)
#
check_type_size(char EMBB_CHAR_TYPE_SIZE)
check_type_size
(
short EMBB_SHORT_TYPE_SIZE
)
#
check_type_size(short EMBB_SHORT_TYPE_SIZE)
check_type_size
(
"unsigned short"
EMBB_UNSIGNED_SHORT_TYPE_SIZE
)
#
check_type_size("unsigned short" EMBB_UNSIGNED_SHORT_TYPE_SIZE)
check_type_size
(
int EMBB_INT_TYPE_SIZE
)
#
check_type_size(int EMBB_INT_TYPE_SIZE)
check_type_size
(
"unsigned int"
EMBB_UNSIGNED_INT_TYPE_SIZE
)
#
check_type_size("unsigned int" EMBB_UNSIGNED_INT_TYPE_SIZE)
check_type_size
(
long EMBB_LONG_TYPE_SIZE
)
#
check_type_size(long EMBB_LONG_TYPE_SIZE)
check_type_size
(
"unsigned long"
EMBB_UNSIGNED_LONG_TYPE_SIZE
)
#
check_type_size("unsigned long" EMBB_UNSIGNED_LONG_TYPE_SIZE)
check_type_size
(
"long long"
EMBB_LONG_LONG_TYPE_SIZE
)
#
check_type_size("long long" EMBB_LONG_LONG_TYPE_SIZE)
check_type_size
(
"unsigned long long"
EMBB_UNSIGNED_LONG_LONG_TYPE_SIZE
)
#
check_type_size("unsigned long long" EMBB_UNSIGNED_LONG_LONG_TYPE_SIZE)
check_type_size
(
intptr_t EMBB_INTPTR_T_TYPE_SIZE
)
#
check_type_size(intptr_t EMBB_INTPTR_T_TYPE_SIZE)
check_type_size
(
uintptr_t EMBB_UINTPTR_T_TYPE_SIZE
)
#
check_type_size(uintptr_t EMBB_UINTPTR_T_TYPE_SIZE)
check_type_size
(
size_t EMBB_SIZE_T_TYPE_SIZE
)
#
check_type_size(size_t EMBB_SIZE_T_TYPE_SIZE)
check_type_size
(
ptrdiff_t EMBB_PTRDIFF_T_TYPE_SIZE
)
#
check_type_size(ptrdiff_t EMBB_PTRDIFF_T_TYPE_SIZE)
check_type_size
(
uintmax_t EMBB_UINTMAX_T_TYPE_SIZE
)
#
check_type_size(uintmax_t EMBB_UINTMAX_T_TYPE_SIZE)
# Create header file from input file
# Create header file from input file
configure_file
(
"include/embb/base/c/internal/atomic/atomic_sizes.h.in"
configure_file
(
"include/embb/base/c/internal/atomic/atomic_sizes.h.in"
...
@@ -122,3 +122,19 @@ install(DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/include/embb
...
@@ -122,3 +122,19 @@ install(DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/include/embb
install
(
DIRECTORY
${
CMAKE_CURRENT_BINARY_DIR
}
/include/embb
install
(
DIRECTORY
${
CMAKE_CURRENT_BINARY_DIR
}
/include/embb
DESTINATION include FILES_MATCHING PATTERN
"*.h"
)
DESTINATION include FILES_MATCHING PATTERN
"*.h"
)
install
(
TARGETS embb_base_c DESTINATION lib
)
install
(
TARGETS embb_base_c DESTINATION lib
)
include
(
CheckTypeSize
)
check_type_size
(
char EMBB_CHAR_TYPE_SIZE
)
check_type_size
(
short EMBB_SHORT_TYPE_SIZE
)
check_type_size
(
"unsigned short"
EMBB_UNSIGNED_SHORT_TYPE_SIZE
)
check_type_size
(
int EMBB_INT_TYPE_SIZE
)
check_type_size
(
"unsigned int"
EMBB_UNSIGNED_INT_TYPE_SIZE
)
check_type_size
(
long EMBB_LONG_TYPE_SIZE
)
check_type_size
(
"unsigned long"
EMBB_UNSIGNED_LONG_TYPE_SIZE
)
check_type_size
(
"long long"
EMBB_LONG_LONG_TYPE_SIZE
)
check_type_size
(
"unsigned long long"
EMBB_UNSIGNED_LONG_LONG_TYPE_SIZE
)
check_type_size
(
intptr_t EMBB_INTPTR_T_TYPE_SIZE
)
check_type_size
(
uintptr_t EMBB_UINTPTR_T_TYPE_SIZE
)
check_type_size
(
size_t EMBB_SIZE_T_TYPE_SIZE
)
check_type_size
(
ptrdiff_t EMBB_PTRDIFF_T_TYPE_SIZE
)
check_type_size
(
uintmax_t EMBB_UINTMAX_T_TYPE_SIZE
)
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