Fixing clang compilation and supporting clang-tidy
- clang.c includes necessary functions to make clang compiler work (tested on teensy 3.1) - Added support code to generate a compile_commands.json for clang-tidy * Updates the symlink whenever cmake or make is called (Unix OSs only)
This commit is contained in:
parent
c5aed6cb17
commit
0102d05c86
6 changed files with 117 additions and 8 deletions
|
@ -1,6 +1,6 @@
|
|||
###| CMAKE Kiibohd Controller |###
|
||||
#
|
||||
# Jacob Alexander 2011-2014
|
||||
# Jacob Alexander 2011-2016
|
||||
# Due to this file's usefulness:
|
||||
#
|
||||
# Released into the Public Domain
|
||||
|
@ -111,6 +111,13 @@ set( COMPILER_SRCS
|
|||
Lib/delay.c
|
||||
)
|
||||
|
||||
#| Clang needs a few more functions for linking
|
||||
if ( "${COMPILER}" MATCHES "clang" )
|
||||
set( COMPILER_SRCS ${COMPILER_SRCS}
|
||||
Lib/clang.c
|
||||
)
|
||||
endif ()
|
||||
|
||||
message( STATUS "Compiler Source Files:" )
|
||||
message( "${COMPILER_SRCS}" )
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue