Skip to content

Commit

Permalink
The DCMAKE_EXPORT_COMPILE_COMMANDS flag generates the `compile_comman…
Browse files Browse the repository at this point in the history
…ds.json` file which contains the exact compiler calls for all translation units of the project in machine-readable form.

This file is used by many code analysis tools, IDE(s), refactoring tools, etc.

There is no harm in having the `compile_commands.json` file.

We want to integrate clang-tidy into the Ceph CI for which the `compile_commands.json` file is necessary.

Signed-off-by: Suyash Dongre <[email protected]>
  • Loading branch information
Suyashd999 committed Jul 21, 2024
1 parent 0631e75 commit 168946b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/build_utils.sh
Original file line number Diff line number Diff line change
Expand Up @@ -960,7 +960,7 @@ build_debs() {

echo building debs for $DIST

CEPH_EXTRA_CMAKE_ARGS="$CEPH_EXTRA_CMAKE_ARGS $(extra_cmake_args)"
CEPH_EXTRA_CMAKE_ARGS="$CEPH_EXTRA_CMAKE_ARGS $(extra_cmake_args)" + " -DCMAKE_EXPORT_COMPILE_COMMANDS:BOOL=ON"
DEB_BUILD_OPTIONS="parallel=$(get_nr_build_jobs)"

# pass only those env vars specifically noted
Expand Down

0 comments on commit 168946b

Please sign in to comment.