Skip to content

Commit

Permalink
Changes to api_leak_detector
Browse files Browse the repository at this point in the history
Change-Id: Ia55873a3349efdda42bffa685b09935f953ac676
  • Loading branch information
madhurajayaraman committed Jul 31, 2024
1 parent 97c8263 commit f6ebeee
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions starboard/tools/api_leak_detector/api_leak_detector.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@
_DEFAULT_PLATFORM = 'evergreen-x64'
_DEFAULT_CONFIG = 'gold'
_DEFAULT_TARGET = 'cobalt'
_DEFAULT_SB_VERSION = 16
_DEFAULT_SB_VERSION = 17

_RE_LIB = re.compile(r'lib.*\.a$')
_RE_FILE = re.compile(r'\/\/.*\.[hcp]+$')
Expand All @@ -86,7 +86,7 @@
_UNKNOWN_SOURCE_FILES = 'unknown_source_file(s)'

# Allowed POSIX symbols in Starboard 16
_ALLOWED_SB16_POSIX_SYMBOLS = [
_ALLOWED_SB_GE_16_POSIX_SYMBOLS = [
'__errno_location',
'accept',
'bind',
Expand Down Expand Up @@ -488,8 +488,8 @@ def IsSbSymbol(symbol):
return symbol.startswith('Sb') or symbol.startswith('kSb')

def IsAllowedPosixSymbol(symbol, sb_api_version: int):
if sb_api_version == 16:
return symbol in _ALLOWED_SB16_POSIX_SYMBOLS
if sb_api_version in [16, 17]:
return symbol in _ALLOWED_SB_GE_16_POSIX_SYMBOLS
else:
return False

Expand Down

0 comments on commit f6ebeee

Please sign in to comment.