Skip to content

Commit bf226ab

Browse files
committed
Require Tizen 11 for tcore GN builds
1 parent 02d7fa6 commit bf226ab

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

tools/gn

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ def get_clang_version(toolchain):
5858
# "Ubuntu clang version 11.0.0-2~ubuntu20.04.1"
5959
output = subprocess.run(
6060
[clang_path, '--version'], encoding='utf-8', stdout=subprocess.PIPE).stdout
61-
match = re.search('(\d+)\.\d+\.\d+', output)
61+
match = re.search(r'(\d+)\.\d+\.\d+', output)
6262
if match:
6363
return int(match.group(1))
6464
else:
@@ -125,8 +125,8 @@ def main():
125125
api_value = float(args.api_version)
126126
except ValueError:
127127
api_value = 0.0
128-
if api_value < 10.0:
129-
sys.exit('--use-tcore requires --api-version 10.0 or higher '
128+
if api_value < 11.0:
129+
sys.exit('--use-tcore requires --api-version 11.0 or higher '
130130
'(tizen-core packages are only published for Tizen 11+). '
131131
'Got --api-version {}.'.format(args.api_version))
132132

0 commit comments

Comments
 (0)