Skip to content

Commit c883b2a

Browse files
committed
Add a warning when trying to install linux-arm64 binaries
See #547
1 parent 88ee963 commit c883b2a

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

emsdk.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2012,7 +2012,7 @@ def find_latest_hash():
20122012
def resolve_sdk_aliases(name, verbose=False):
20132013
releases_info = load_releases_info()
20142014
if name == 'latest' and LINUX and ARCH == 'arm64':
2015-
print("warning: 'latest' on arm64-linux may be slightly behind other architectures")
2015+
errlog("WARNING: 'latest' on arm64-linux may be slightly behind other architectures")
20162016
name = 'latest-arm64-linux'
20172017
while name in releases_info['aliases']:
20182018
if verbose:
@@ -3046,6 +3046,10 @@ def print_tools(t):
30463046
errlog("Missing parameter. Type 'emsdk install <tool name>' to install a tool or an SDK. Type 'emsdk list' to obtain a list of available tools. Type 'emsdk install latest' to automatically install the newest version of the SDK.")
30473047
return 1
30483048

3049+
if LINUX and ARCH == 'arm64' and args != ['latest']:
3050+
errlog('WARNING: arm64-linux binaries are not availble for all releases.')
3051+
errlog('See https://github.com/emscripten-core/emsdk/issues/547')
3052+
30493053
for t in args:
30503054
tool = find_tool(t)
30513055
if tool is None:

0 commit comments

Comments
 (0)