Skip to content

Commit

Permalink
Export "compile_commands.json" for clangd (#8)
Browse files Browse the repository at this point in the history
  • Loading branch information
AllanZyne authored Jun 24, 2024
1 parent f592fbd commit a175942
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -133,3 +133,6 @@ dmypy.json

# emacs
*~

# clangd
/compile_commands.json
1 change: 1 addition & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ def build_cmake(self, ext):
f"-DCMAKE_LIBRARY_OUTPUT_DIRECTORY={extdir.parent.absolute()}",
f"-DCMAKE_BUILD_TYPE={config}",
"-DCMAKE_VERBOSE_MAKEFILE=ON",
"-DCMAKE_EXPORT_COMPILE_COMMANDS=1",
"-G=Ninja",
"-DLLVM_ENABLE_LLD=ON",
f"-DCMAKE_PREFIX_PATH={os.getenv('CONDA_PREFIX')}/lib/cmake",
Expand Down

0 comments on commit a175942

Please sign in to comment.