Skip to content

Commit 2ad2cfd

Browse files
committed
created toolbox
1 parent 9d11789 commit 2ad2cfd

File tree

97 files changed

+50283
-3036
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

97 files changed

+50283
-3036
lines changed

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,3 +78,6 @@ build
7878
lib
7979
DerivedData
8080
Figlet.xcodeproj
81+
docs_build/sphinx/_build
82+
docs_build/sphinx/_doxygen
83+
*.mltbx

CMakeLists-cflags.txt

Lines changed: 26 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,42 @@
1+
12
SET( CMAKE_ALLOW_LOOSE_LOOP_CONSTRUCTS TRUE )
23
SET( CMAKE_VERBOSE_MAKEFILE TRUE )
34

45
# /Gd Uses the __cdecl calling convention (x86 only).
5-
# /Gr Uses the __fastcall calling convention (x86 only).
6-
# /Gv Uses the __vectorcall calling convention. (x86 and x64 only)
7-
# /Gz Uses the __stdcall calling convention (x86 only).
6+
# /Gr Uses the __fastcall calling convention (x86 only).
7+
# /Gv Uses the __vectorcall calling convention. (x86 and x64 only)
8+
# /Gz Uses the __stdcall calling convention (x86 only).
9+
10+
SET( CXX_WARN "-Wall -Wno-float-equal -Wno-padded ")
11+
SET( CLANG_WARN "-Wall -Wno-alloca -Wno-cast-align -Wno-cast-qual -Wno-conversion -Wno-c++2a-compat -Wno-c++98-compat -Wno-c++98-compat-pedantic -Wno-format-nonliteral -Wno-implicit-fallthrough -Wno-documentation -Wno-float-equal -Wno-padded -Wno-reserved-id-macro -Wno-unreachable-code-break -Wno-unused-macros -Wno-switch-enum -Wno-sign-conversion -Wno-signed-enum-bitfield -Wno-weak-vtables ")
12+
SET( VS_WARN "")
813

914
IF( CMAKE_CXX_COMPILER_ID MATCHES "GNU" )
10-
SET( CMAKE_CXX_FLAGS "-std=c++11 " )
11-
SET( CMAKE_CXX_FLAGS_RELEASE "-fPIC -Wall -Wno-float-equal -Wno-padded -funroll-loops -O2 -g " )
12-
SET( CMAKE_CXX_FLAGS_DEBUG "-fPIC -Wall -Wno-float-equal -Wno-padded -O0 -g -DMECHATRONIX_DEBUG -DDEBUG " )
15+
SET( CMAKE_CXX_FLAGS "-std=c++11 " )
16+
SET( CMAKE_CXX_FLAGS_RELEASE "-fPIC -fopenmp -O2 -g -floop-interchange -floop-block -funroll-loops ${CXX_WARN}" )
17+
SET( CMAKE_CXX_FLAGS_DEBUG "-fPIC -fopenmp -O0 -ggdb -DMECHATRONIX_DEBUG -DDEBUG ${CXX_WARN}" )
1318
ELSEIF( CMAKE_CXX_COMPILER_ID MATCHES "Clang" )
14-
SET( CMAKE_CXX_FLAGS "-std=c++11 -stdlib=libc++ " )
15-
SET( CMAKE_CXX_FLAGS_RELEASE "-fPIC -Weverything -Wno-weak-vtables -Wno-implicit-fallthrough -Wno-documentation-unknown-command -Wno-float-equal -Wno-c++98-compat -Wno-c++98-compat-pedantic -Wno-padded -Wno-reserved-id-macro -Wno-documentation -funroll-loops -O2 -g " )
16-
SET( CMAKE_CXX_FLAGS_DEBUG "-fPIC -Weverything -Wno-weak-vtables -Wno-implicit-fallthrough -Wno-documentation-unknown-command -Wno-float-equal -Wno-c++98-compat -Wno-c++98-compat-pedantic -Wno-padded -Wno-reserved-id-macro -Wno-documentation -O0 -gfull -DMECHATRONIX_DEBUG -DDEBUG " )
19+
SET( CMAKE_CXX_FLAGS "-std=c++11 -stdlib=libc++ " )
20+
SET( CMAKE_CXX_FLAGS_RELEASE "-fPIC -Os -g -finline-functions -finline-hint-functions -funroll-loops -fcolor-diagnostics ${CLANG_WARN}" )
21+
SET( CMAKE_CXX_FLAGS_DEBUG "-fPIC -O0 -gfull -fcolor-diagnostics -DMECHATRONIX_DEBUG -DDEBUG ${CLANG_WARN}" )
1722
ELSEIF( CMAKE_CXX_COMPILER_ID MATCHES "MSVC" )
18-
SET( CMAKE_CXX_FLAGS_RELEASE "/nologo /GS /W3 /WX- /Gm- /fp:precise /EHsc /D_WINDOWS /D_SCL_SECURE_NO_WARNINGS /DHAVE_STRING_H /DNO_GETTIMEOFDAY /DYAML_DECLARE_STATIC /DPCRE_STATIC /O2 /MD " )
19-
SET( CMAKE_CXX_FLAGS_DEBUG "/nologo /GS /W3 /WX- /Gm- /fp:precise /EHsc /D_WINDOWS /D_SCL_SECURE_NO_WARNINGS /DHAVE_STRING_H /DNO_GETTIMEOFDAY /DYAML_DECLARE_STATIC /DPCRE_STATIC /Od /Ob0 /MDd /Z7 /RTC1 /D_DEBUG /DMECHATRONIX_DEBUG " )
23+
SET( CMAKE_CXX_FLAGS "" )
24+
SET( CMAKE_CXX_FLAGS_RELEASE "/nologo /GS /W3 /WX- /EHsc /bigobj /D_WINDOWS /D_SCL_SECURE_NO_WARNINGS /DHAVE_STRING_H /DNO_GETTIMEOFDAY /DYAML_DECLARE_STATIC /DPCRE_STATIC /O2 /MD ${VS_WARN}" )
25+
SET( CMAKE_CXX_FLAGS_DEBUG "/nologo /GS /W3 /WX- /EHsc /bigobj /D_WINDOWS /D_SCL_SECURE_NO_WARNINGS /DHAVE_STRING_H /DNO_GETTIMEOFDAY /DYAML_DECLARE_STATIC /DPCRE_STATIC /Od /Ob0 /MDd /RTC1 /guard:cf /Zi /D_DEBUG /DMECHATRONIX_DEBUG ${VS_WARN}" )
2026
ELSE()
2127
MESSAGE( FATAL_ERROR "Unsupported compiler ${CMAKE_CXX_COMPILER_ID}")
2228
ENDIF()
2329

2430
MESSAGE( STATUS "Compiler used: ${CMAKE_CXX_COMPILER_ID}")
2531

32+
SET( CMAKE_C_FLAGS "" )
2633
SET( CMAKE_C_FLAGS_RELEASE ${CMAKE_CXX_FLAGS_RELEASE} )
2734
SET( CMAKE_C_FLAGS_DEBUG ${CMAKE_CXX_FLAGS_DEBUG} )
35+
36+
# select LAPACK library to be used
37+
SET( PINS_USE_ACCELERATE true )
38+
39+
# check if link against static libgcc
40+
SET( PINS_USE_STATIC_LIBGCC false )
41+
42+
SET( PINS_ON_RASPBERRY false )

0 commit comments

Comments
 (0)