Skip to content

Commit 7457c73

Browse files
committed
fix: always update meta config info in buildServer.json
1 parent 8c67148 commit 7457c73

File tree

2 files changed

+10
-7
lines changed

2 files changed

+10
-7
lines changed

config.py

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -160,13 +160,15 @@ def __init__(self, path):
160160
with open(path, "r") as f:
161161
self.data = json.load(f)
162162
else:
163-
self.data = {
164-
"name": "xcode build server",
165-
"version": "0.2",
166-
"bspVersion": "2.0",
167-
"languages": ["c", "cpp", "objective-c", "objective-cpp", "swift"],
168-
"argv": [sys.argv[0]],
169-
}
163+
self.data = {}
164+
165+
self.data.update({
166+
"name": "xcode build server",
167+
"version": "0.2",
168+
"bspVersion": "2.0",
169+
"languages": ["c", "cpp", "objective-c", "objective-cpp", "swift"],
170+
"argv": [sys.argv[0]]
171+
})
170172

171173
def save(self):
172174
with open(self.path, "w") as f:

xclog_parser.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -408,6 +408,7 @@ def _parse(args):
408408
else:
409409
index_store_path = None
410410

411+
# also dump buildServer.json when use default output
411412
from config import ServerConfig
412413

413414
c = ServerConfig.shared()

0 commit comments

Comments
 (0)