You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: xcode-build-server
+35-9Lines changed: 35 additions & 9 deletions
Original file line number
Diff line number
Diff line change
@@ -8,10 +8,15 @@ def show_help():
8
8
print(
9
9
f"""usage:
10
10
{sys.argv[0]}: start a build server
11
+
{sys.argv[0]} serve: start a build server
11
12
{sys.argv[0]} config: bind xcworkspace and generate a buildServer.json to current dir
12
13
{sys.argv[0]} parse: xcode log subcommand. call parse -h to see more help
13
14
{sys.argv[0]} postaction: dump a xcode post build bash script to sync flags to .compile(usage: `{sys.argv[0]} postaction | bash &` in xcode post build bash script)
14
15
{sys.argv[0]} [-h|--help]: show help
16
+
17
+
SPECIAL ENVIRONMENT VARIABLE:
18
+
SOURCEKIT_LOGGING=3: enable detail debug log
19
+
XBS_LOGPATH: set log path. default is :stderr. use :null to disable log
15
20
"""
16
21
)
17
22
exit(0)
@@ -24,13 +29,35 @@ def show_debug_help():
24
29
)
25
30
exit(0)
26
31
27
-
defmain():
32
+
defserve():
33
+
importserver
34
+
server.serve()
35
+
36
+
defsetup_root_logger():
28
37
level=os.environ.get("SOURCEKIT_LOGGING")
29
-
logger=logging.getLogger()
30
-
if (levelisnotNoneandint(level) >=1) oros.environ.get("XBSDEBUG") =="1":
0 commit comments