aboutsummaryrefslogtreecommitdiffstats
path: root/extras
diff options
context:
space:
mode:
authorDamjan Marion <damarion@cisco.com>2021-04-29 18:47:25 +0200
committerAndrew Yourtchenko <ayourtch@gmail.com>2021-04-30 17:02:32 +0000
commit88b2e3682be6303973fc59c3c62141d64a9e10d7 (patch)
tree80337f9ba278dd3ebad7badb94f1ee9fd13a3bae /extras
parent10796899cf3005df2575fb55be4956792db2c5d8 (diff)
misc: experimental configure script
Type: make Change-Id: Iaeb9d22eec9a7a763b63899814a44e78c8050f1f Signed-off-by: Damjan Marion <damarion@cisco.com>
Diffstat (limited to 'extras')
-rwxr-xr-xextras/scripts/compdb_cleanup.py28
1 files changed, 0 insertions, 28 deletions
diff --git a/extras/scripts/compdb_cleanup.py b/extras/scripts/compdb_cleanup.py
deleted file mode 100755
index 0139b6bb6c5..00000000000
--- a/extras/scripts/compdb_cleanup.py
+++ /dev/null
@@ -1,28 +0,0 @@
-#!/usr/bin/env python3
-
-import sys
-import json
-
-objects = json.load(sys.stdin)
-
-for i in range(len(objects) - 1, -1, -1):
- obj = objects[i]
-
- # Remove everything except .c files
- if not obj["file"].endswith(".c"):
- objects.remove(obj)
- continue
-
- # remove duplicates introduced my multiarch
- if "CLIB_MARCH_VARIANT" in obj["command"]:
- objects.remove(obj)
- continue
-
- # remove ccache prefix
- s = str.split(obj["command"])
- if s[0] == "ccache":
- s.remove(s[0])
- s[0] = s[0].split("/")[-1]
- obj["command"] = " ".join(s)
-
-json.dump(objects, sys.stdout, indent=2)