sanitycheck: export compile commands on --cmake-only
export compile commands when running with --cmake-only, this can be used for analysis and coverage statistics. Signed-off-by: Anas Nashif <anas.nashif@intel.com>
This commit is contained in:
parent
a70a926432
commit
d91f993e66
1 changed files with 3 additions and 0 deletions
|
@ -1841,6 +1841,9 @@ class CMake():
|
||||||
'-G{}'.format(get_generator()[1])
|
'-G{}'.format(get_generator()[1])
|
||||||
]
|
]
|
||||||
|
|
||||||
|
if options.cmake_only:
|
||||||
|
cmake_args.append("-DCMAKE_EXPORT_COMPILE_COMMANDS=1")
|
||||||
|
|
||||||
args = ["-D{}".format(a.replace('"', '')) for a in args]
|
args = ["-D{}".format(a.replace('"', '')) for a in args]
|
||||||
cmake_args.extend(args)
|
cmake_args.extend(args)
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue