Skip to content

Commit 7c639ad

Browse files
committed
update clang warning
1 parent f6bad91 commit 7c639ad

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
@@ -368,10 +368,7 @@ def Upgrade(ton, args):
368368

369369
clang_version = get_clang_major_version()
370370
if clang_version is None or clang_version < 16:
371-
text = "{yellow}Warning: clang version 16 or higher is required for TON Node software upgrade.{endc}\n"
372-
if clang_version is None:
373-
text += "Could not check clang version.\n If you are sure that clang version is 16 or higher, use --force option.\n"
374-
text += "For clang update check the following instructions: https://gist.github.com/neodix42/e4b1b68d2d5dd3dec75b5221657f05d7\n"
371+
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"
375372
color_print(text)
376373
if input("Continue with upgrade anyway? [Y/n]\n").strip().lower() not in ('y', ''):
377374
print('aborted.')

0 commit comments

Comments
 (0)