mirror of
https://gitee.com/openharmony/third_party_mesa3d
synced 2024-12-04 05:33:41 +00:00
util/u_trace: Replace Flag with IntEnum to support python3.5
Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/5586
Fixes: cefaa73909
Signed-off-by: Kostiantyn Lazukin <kostiantyn.lazukin@globallogic.com>
Reviewed-by: Danylo Piliaiev <dpiliaiev@igalia.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/13643>
This commit is contained in:
parent
349bfb7275
commit
78b613db23
@ -23,7 +23,7 @@
|
||||
|
||||
from mako.template import Template
|
||||
from collections import namedtuple
|
||||
from enum import Flag, auto
|
||||
from enum import IntEnum
|
||||
import os
|
||||
|
||||
TRACEPOINTS = {}
|
||||
@ -101,9 +101,9 @@ class TracepointArg(object):
|
||||
|
||||
HEADERS = []
|
||||
|
||||
class HeaderScope(Flag):
|
||||
HEADER = auto()
|
||||
SOURCE = auto()
|
||||
class HeaderScope(IntEnum):
|
||||
HEADER = (1 << 0)
|
||||
SOURCE = (1 << 1)
|
||||
|
||||
class Header(object):
|
||||
"""Class that represents a header file dependency of generated tracepoints
|
||||
|
Loading…
Reference in New Issue
Block a user