Skip to content

Commit 3669238

Browse files
authored
[lit] add LIT_MAX_WORKERS env variable (#76205)
1 parent 650119c commit 3669238

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/utils/lit/lit/cl_arguments.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ def parse_args():
3636
metavar="N",
3737
help="Number of workers used for testing",
3838
type=_positive_int,
39-
default=lit.util.usable_core_count(),
39+
default=os.getenv("LIT_MAX_WORKERS", lit.util.usable_core_count()),
4040
)
4141
parser.add_argument(
4242
"--config-prefix",

0 commit comments

Comments
 (0)