comparison Lib/CMake/arm.cmake @ 428:b5746c43904e

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)
author Jacob Alexander <haata@kiibohd.com>
date Fri, 04 Mar 2016 00:23:48 -0800
parents 772f9bea482b
children
comparison
equal deleted inserted replaced
427:f17857f4ca14 428:b5746c43904e
1 ###| CMAKE Kiibohd Controller |### 1 ###| CMAKE Kiibohd Controller |###
2 # 2 #
3 # Jacob Alexander 2011-2014 3 # Jacob Alexander 2011-2016
4 # Due to this file's usefulness: 4 # Due to this file's usefulness:
5 # 5 #
6 # Released into the Public Domain 6 # Released into the Public Domain
7 # 7 #
8 # Freescale ARM CMake Build Configuration 8 # Freescale ARM CMake Build Configuration
108 #| Mostly for convenience functions like interrupt handlers 108 #| Mostly for convenience functions like interrupt handlers
109 set( COMPILER_SRCS 109 set( COMPILER_SRCS
110 Lib/${CHIP_FAMILY}.c 110 Lib/${CHIP_FAMILY}.c
111 Lib/delay.c 111 Lib/delay.c
112 ) 112 )
113
114 #| Clang needs a few more functions for linking
115 if ( "${COMPILER}" MATCHES "clang" )
116 set( COMPILER_SRCS ${COMPILER_SRCS}
117 Lib/clang.c
118 )
119 endif ()
113 120
114 message( STATUS "Compiler Source Files:" ) 121 message( STATUS "Compiler Source Files:" )
115 message( "${COMPILER_SRCS}" ) 122 message( "${COMPILER_SRCS}" )
116 123
117 124