Skip to content

Commit 54bdfd1

Browse files
committed
comments
1 parent eac4554 commit 54bdfd1

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

llvm/utils/merge-json.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
import argparse
1010
import json
1111
import sys
12+
import os
1213

1314

1415
def main():
@@ -40,7 +41,8 @@ def main():
4041
# Remove it here before we deduplicate the entries.
4142
for entry in merged_data:
4243
if isinstance(entry, dict) and "command" in entry:
43-
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 ", "")
4446

4547
# Deduplicate by converting each entry to a tuple of sorted key-value pairs
4648
unique_data = list({json.dumps(entry, sort_keys=True) for entry in merged_data})

0 commit comments

Comments
 (0)