Skip to content

Commit d91f993

Browse files
nashifgalak
authored andcommitted
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 <[email protected]>
1 parent a70a926 commit d91f993

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

scripts/sanitycheck

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1841,6 +1841,9 @@ class CMake():
18411841
'-G{}'.format(get_generator()[1])
18421842
]
18431843

1844+
if options.cmake_only:
1845+
cmake_args.append("-DCMAKE_EXPORT_COMPILE_COMMANDS=1")
1846+
18441847
args = ["-D{}".format(a.replace('"', '')) for a in args]
18451848
cmake_args.extend(args)
18461849

0 commit comments

Comments
 (0)