Skip to content

Commit 77afe36

Browse files
davezarzyckiAzharuddin Mohammed
authored andcommitted
[lit] Support older Python 3.x versions without enum.auto()
(cherry picked from commit 6bedcf0)
1 parent 20cd98d commit 77afe36

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

llvm/utils/lit/lit/cl_arguments.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,10 @@
99

1010

1111
class TestOrder(enum.Enum):
12-
DEFAULT = enum.auto()
13-
RANDOM = enum.auto()
12+
# Older Python versions don't have enum.auto().
13+
# Does upstream LLVM not have a build bot with Python 3.5?
14+
DEFAULT = 1
15+
RANDOM = 2
1416

1517

1618
def parse_args():

0 commit comments

Comments
 (0)