mirror of
https://github.com/hathach/tinyusb.git
synced 2025-01-17 05:32:55 +08:00
using clang with ceedling unit-test with -fsanitize=address
This commit is contained in:
parent
82457519fa
commit
e885ced0fe
@ -78,10 +78,24 @@
|
|||||||
:html_high_threshold: 90
|
:html_high_threshold: 90
|
||||||
:xml_report: FALSE
|
:xml_report: FALSE
|
||||||
|
|
||||||
#:tools:
|
:tools:
|
||||||
# Ceedling defaults to using gcc for compiling, linking, etc.
|
:test_compiler:
|
||||||
# As [:tools] is blank, gcc will be used (so long as it's in your system path)
|
:executable: clang
|
||||||
# See documentation to configure a given toolchain for use
|
:name: 'clang compiler'
|
||||||
|
:arguments:
|
||||||
|
- -I"$": COLLECTION_PATHS_TEST_TOOLCHAIN_INCLUDE #expands to -I search paths
|
||||||
|
- -I"$": COLLECTION_PATHS_TEST_SUPPORT_SOURCE_INCLUDE_VENDOR #expands to -I search paths
|
||||||
|
- -D$: COLLECTION_DEFINES_TEST_AND_VENDOR #expands to all -D defined symbols
|
||||||
|
- -fsanitize=address
|
||||||
|
- -c ${1} #source code input file (Ruby method call param list sub)
|
||||||
|
- -o ${2} #object file output (Ruby method call param list sub)
|
||||||
|
:test_linker:
|
||||||
|
:executable: clang
|
||||||
|
:name: 'clang linker'
|
||||||
|
:arguments:
|
||||||
|
- -fsanitize=address
|
||||||
|
- ${1} #list of object files to link (Ruby method call param list sub)
|
||||||
|
- -o ${2} #executable file output (Ruby method call param list sub)
|
||||||
|
|
||||||
# LIBRARIES
|
# LIBRARIES
|
||||||
# These libraries are automatically injected into the build process. Those specified as
|
# These libraries are automatically injected into the build process. Those specified as
|
||||||
|
Loading…
x
Reference in New Issue
Block a user