Skip to content

Commit ee9d17b

Browse files
authored
Merge pull request #465 from yungwine/clang
update clang warning
2 parents 1224415 + 7c639ad commit ee9d17b

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

mytonctrl/mytonctrl.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -350,10 +350,7 @@ def Upgrade(ton, args):
350350

351351
clang_version = get_clang_major_version()
352352
if clang_version is None or clang_version < 16:
353-
text = "{yellow}Warning: clang version 16 or higher is required for TON Node software upgrade.{endc}\n"
354-
if clang_version is None:
355-
text += "Could not check clang version.\n If you are sure that clang version is 16 or higher, use --force option.\n"
356-
text += "For clang update check the following instructions: https://gist.github.com/neodix42/e4b1b68d2d5dd3dec75b5221657f05d7\n"
353+
text = f"{{red}}WARNING: THIS UPGRADE WILL MOST PROBABLY FAIL DUE TO A WRONG CLANG VERSION: {clang_version}, REQUIRED VERSION IS 16. RECOMMENDED TO EXIT NOW AND UPGRADE CLANG AS PER INSTRUCTIONS: https://gist.github.com/neodix42/e4b1b68d2d5dd3dec75b5221657f05d7{{endc}}\n"
357354
color_print(text)
358355
if input("Continue with upgrade anyway? [Y/n]\n").strip().lower() not in ('y', ''):
359356
print('aborted.')

0 commit comments

Comments
 (0)