1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-26 04:32:44 +01:00

[lit] Silence warning about importing the resource module on Windows

lit was printing this warning on every test run on Windows, and that is
not necessary.
This commit is contained in:
Reid Kleckner 2019-10-30 16:10:24 -07:00
parent 40640b50a0
commit fbcf20e723

View File

@ -163,7 +163,9 @@ class ParallelRun(Run):
self.lit_config.note('Raised process limit from %d to %d' % \
(soft_limit, desired_limit))
except Exception as ex:
self.lit_config.warning('Failed to raise process limit: %s' % ex)
# Warn, unless this is Windows, in which case this is expected.
if os.name != 'nt':
self.lit_config.warning('Failed to raise process limit: %s' % ex)
def _install_win32_signal_handler(self, pool):
if lit.util.win32api is not None: