We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent eac4554 commit 54bdfd1Copy full SHA for 54bdfd1
llvm/utils/merge-json.py
@@ -9,6 +9,7 @@
9
import argparse
10
import json
11
import sys
12
+import os
13
14
15
def main():
@@ -40,7 +41,8 @@ def main():
40
41
# Remove it here before we deduplicate the entries.
42
for entry in merged_data:
43
if isinstance(entry, dict) and "command" in entry:
- entry["command"] = entry["command"].replace("-fno-lifetime-dse ", "")
44
+ if os.path.basename(entry["command"].partition(" ")[0]) != "g++":
45
+ entry["command"] = entry["command"].replace("-fno-lifetime-dse ", "")
46
47
# Deduplicate by converting each entry to a tuple of sorted key-value pairs
48
unique_data = list({json.dumps(entry, sort_keys=True) for entry in merged_data})
0 commit comments