diff --git a/build/android/gyp/util/server_utils.py b/build/android/gyp/util/server_utils.py index 6d5ed79d3..c05b57529 100644 --- a/build/android/gyp/util/server_utils.py +++ b/build/android/gyp/util/server_utils.py @@ -36,7 +36,9 @@ def MaybeRunCommand(name, argv, stamp_file, force): except socket.error as e: # [Errno 111] Connection refused. Either the server has not been started # or the server is not currently accepting new connections. - if e.errno == 111: + # [Errno 2] Abstract Unix sockets are unsupported on macOS, so treat + # this the same way (build server unavailable). + if e.errno in (111, 2): if force: raise RuntimeError( '\n\nBuild server is not running and '