Skip to content

Commit

Permalink
fixed compile command gen
Browse files Browse the repository at this point in the history
  • Loading branch information
markzakharyan committed Oct 14, 2024
1 parent 1298875 commit 2d0d93d
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 11 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@
.vscode/ipch
*.cache*
*.ccls*
*compile_commands*
*compile_commands.json
5 changes: 0 additions & 5 deletions m4/.gitignore

This file was deleted.

8 changes: 8 additions & 0 deletions m4/gen_compile_commands.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
import os
Import("env")

# include toolchain paths
env.Replace(COMPILATIONDB_INCLUDE_TOOLCHAIN=True)

# override compilation DB path
env.Replace(COMPILATIONDB_PATH="compile_commands.json")
5 changes: 0 additions & 5 deletions m7/.gitignore

This file was deleted.

8 changes: 8 additions & 0 deletions m7/gen_compile_commands.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
import os
Import("env")

# include toolchain paths
env.Replace(COMPILATIONDB_INCLUDE_TOOLCHAIN=True)

# override compilation DB path
env.Replace(COMPILATIONDB_PATH="compile_commands.json")

0 comments on commit 2d0d93d

Please sign in to comment.