Skip to content

Commit 30ce71e

Browse files
committed
fix: enable to generate compile_commands.json via cmake to workaround bear make compilation failure
1 parent a813939 commit 30ce71e

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,5 +12,7 @@ __pycache__/
1212
*.npy
1313
*.meta
1414

15+
compile_commands.json
16+
1517
/scripts/*.py
1618
!/scripts/format.py

CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ option(USE_BANG "Support Hanwuji MLU" OFF)
99

1010
set(CMAKE_CXX_STANDARD 20)
1111
set(CMAKE_CXX_STANDARD_REQUIRED ON)
12+
set(CMAKE_EXPORT_COMPILE_COMMANDS ON)
1213
set(CMAKE_CXX_EXTENSIONS OFF)
1314
set(CMAKE_POSITION_INDEPENDENT_CODE ON)
1415

0 commit comments

Comments
 (0)