Skip to content

Commit f3f238a

Browse files
authored
Merge pull request #66104 from tristanlabelle/support-no-NUMBER_OF_PROCESSORS
Support NUMBER_OF_PROCESSORS not being defined when running tests on Windows
2 parents ba67156 + 21725b4 commit f3f238a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

test/lit.cfg

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1447,7 +1447,8 @@ if run_vendor == 'apple':
14471447

14481448
elif run_os in ['windows-msvc']:
14491449
lit_config.note('Testing Windows ' + config.variant_triple)
1450-
config.environment['NUMBER_OF_PROCESSORS'] = os.environ['NUMBER_OF_PROCESSORS']
1450+
if 'NUMBER_OF_PROCESSORS' in os.environ:
1451+
config.environment['NUMBER_OF_PROCESSORS'] = os.environ['NUMBER_OF_PROCESSORS']
14511452
if 'PROCESSOR_ARCHITEW6432' in os.environ:
14521453
config.environment['PROCESSOR_ARCHITEW6432'] = os.environ['PROCESSOR_ARCHITEW6432']
14531454
if 'PROCESSOR_ARCHITECTURE' in os.environ:

0 commit comments

Comments
 (0)