Code Review
/
vpp.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
| inline |
side by side
misc: experimental configure script
[vpp.git]
/
src
/
scripts
/
compdb_cleanup.py
diff --git
a/extras/scripts/compdb_cleanup.py
b/src/scripts/compdb_cleanup.py
similarity index 85%
rename from
extras/scripts/compdb_cleanup.py
rename to
src/scripts/compdb_cleanup.py
index
0139b6b
..
0302fc2
100755
(executable)
--- a/
extras/scripts/compdb_cleanup.py
+++ b/
src/scripts/compdb_cleanup.py
@@
-18,6
+18,11
@@
for i in range(len(objects) - 1, -1, -1):
objects.remove(obj)
continue
+ # remove if there is no command
+ if obj["command"] == "":
+ objects.remove(obj)
+ continue
+
# remove ccache prefix
s = str.split(obj["command"])
if s[0] == "ccache":