Skip to content

Commit

Permalink
Merge pull request #97 from Tunghohin/fix
Browse files Browse the repository at this point in the history
fix: enable to generate compile_commands.json via cmake to workaround bear make compilation failure
  • Loading branch information
YdrMaster authored Nov 27, 2024
2 parents a813939 + 30ce71e commit 9eddc91
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,7 @@ __pycache__/
*.npy
*.meta

compile_commands.json

/scripts/*.py
!/scripts/format.py
1 change: 1 addition & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ option(USE_BANG "Support Hanwuji MLU" OFF)

set(CMAKE_CXX_STANDARD 20)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
set(CMAKE_EXPORT_COMPILE_COMMANDS ON)
set(CMAKE_CXX_EXTENSIONS OFF)
set(CMAKE_POSITION_INDEPENDENT_CODE ON)

Expand Down

0 comments on commit 9eddc91

Please sign in to comment.